MD5/Implementation: Difference between revisions

Line 831:
# Convert the message to 32-bit words, little-endian.
M = Array.prototype.slice.call Uint32Array Uint8Array(c.charCodeAt() for c in input).buffer
M =
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.
Anonymous user