Md5 of an array of int

Armoured

Member
Licensed User
Longtime User
Hi,
If you convert an array of short or int with ByteConverter libs the size of the old array and the new one isn't the same.
An array of short (16 bit) that have 25 elements like these:
0,28,162,18,52,86,34,51,17,52,2,129,250,34,17,65,104,17,18,1,5,34,113,66,16,102

Is converted with the use of "ShortsToBytes" in an array of 51 byte now one byte is made by 8 bit then the right size of the array must be 50 (25x2) and not 51.

This size error make useless all MD5 control.
I'm wrong?
 
Upvote 0
Top