leefj / fast-md5

MD5 Fast( about 10 times the speed of the traditional one )
0 stars 0 forks source link

Not compatible with classic MD5 #1

Open dmitry-yamaykin opened 6 years ago

dmitry-yamaykin commented 6 years ago

FlashDevelop, AIR SDK 25, ASC2.0, target version = 25, debug/release alike

com.adobe.crypto.MD5 from as3corelib.swc

MD5.hash("123456") = "e10adc3949ba59abbe56e057f20f883e" FastMD5.hash("123456") = "ac1d1f03d08ea56eb767ab1f91773174"

leefj commented 6 years ago

I have test in flash builder with air 27 , it runs ok , kkkk

For FlashDevelop and AIR SDK 25, I should install windows on VM later and test

dmitry-yamaykin commented 6 years ago

Nope, with AIR SDK 27 I get the same result as above. Also, it would be a disaster if it would produce different results on different SDK's or Flash Player versions.

Just to make sure. After writeUTFBytes the ByteArray contains 31 32 33 34 35 36 in hex values.

qalle2 commented 2 months ago

ac1d1f03d08ea56eb767ab1f91773174 should be the MD5 hash you get for an empty string if you forget to pad the message with the 0x80 byte.