08-14-2023, 01:10 PM
take a look at this (i switched to windows codepage because, yeah windows)
b'5e486282398373e0b4bedf01db16b795' : PásztorZs201
b'eab5b5c892e0748ecd8977611385356d' : ömür.83F
b'0e9e45ceb1bf4b13740482ecef3a6f15' : vascão.321
b'5e486282398373e0b4bedf01db16b795' : PásztorZs201 : 50C3A1737A746F725A73323031
b'eab5b5c892e0748ecd8977611385356d' : ömür.83F : c3b66dc3bc722e383346
b'0e9e45ceb1bf4b13740482ecef3a6f15' : vascão.321 : 76617363C3A36F2E333231
the diff in stringoutput, yeah next cool thing (terminal)
as you can see it works for pastor and ömür, regarding vascao is your hash wrong (try to crack it and you will see you hash is wrong)
Code:
strings = ['PásztorZs201', 'ömür.83F', 'vascão.321']
for val in strings:
hash = hashlib.new('md4', val.encode().decode('windows-1252').encode('utf-16le')).digest()
hash = binascii.hexlify(hash)
print(f"{hash} : {val}")
hexstrings = ['50C3A1737A746F725A73323031', 'c3b66dc3bc722e383346', '76617363C3A36F2E333231']
for hexes in hexstrings:
val = bytes.fromhex(hexes).decode('windows-1252')
hash = hashlib.new('md4', val.encode('utf-16le')).digest()
hash = binascii.hexlify(hash)
print(f"{hash} : {val} : {hexes}")
b'5e486282398373e0b4bedf01db16b795' : PásztorZs201
b'eab5b5c892e0748ecd8977611385356d' : ömür.83F
b'0e9e45ceb1bf4b13740482ecef3a6f15' : vascão.321
b'5e486282398373e0b4bedf01db16b795' : PásztorZs201 : 50C3A1737A746F725A73323031
b'eab5b5c892e0748ecd8977611385356d' : ömür.83F : c3b66dc3bc722e383346
b'0e9e45ceb1bf4b13740482ecef3a6f15' : vascão.321 : 76617363C3A36F2E333231
the diff in stringoutput, yeah next cool thing (terminal)
as you can see it works for pastor and ömür, regarding vascao is your hash wrong (try to crack it and you will see you hash is wrong)