MD5/Implementation: Difference between revisions
Content added Content deleted
No edit summary |
|||
Line 831: | Line 831: | ||
# Convert the message to 32-bit words, little-endian. |
# Convert the message to 32-bit words, little-endian. |
||
M = |
|||
M = Array.prototype.slice.call Uint32Array Uint8Array(c.charCodeAt() for c in input).buffer |
|||
for i in [0...input.length] by 4 |
|||
sum (input.charCodeAt(i + j) << j*8 for j in [0..3]) |
|||
# Pre-processing: append a 1 bit, then message length % 2^64. |
# Pre-processing: append a 1 bit, then message length % 2^64. |