emn178 / online-tools

Online tools provides md2, md5, sha1, sha2, sha512, bas64, html encode / decode functions
752 stars 347 forks source link

MD4 or MD4 File #7

Closed yoonghm closed 4 years ago

yoonghm commented 4 years ago

Hi, I tried to use the service to hash "testingPassword" which is encoded in UTF-16LE. The generated hash code is not correct.

In Python, the hash code is 32910df84fa6579a5d0865fca64f1190.

However the em178.github.io gives 05c90f1db64d14923f2c126fe1a57082. I copied the content from Microsoft Word and the file is written using UTF-16LE.

I use MD4 file, it gives me 6875f3e20a30fe64b49658b2bfe5bf13 instead.

The file is available from https://raw.githubusercontent.com/yoonghm/misc/master/myfile-utf18le.txt

emn178 commented 4 years ago

File Checksum will process it in bytes. The behavior is different from hash plain text. Make sure which one is you want. "Read plain text and hash" or "hash entire file".