/**
1
lechain 2021-03-25 07:44:43 +08:00 via Android
兄弟,排版毁了🤣
|
2
kokutou 2021-03-25 08:13:45 +08:00 via Android 1
& 0xff 啊。。。
|
5
xinhochen 2021-03-25 09:07:51 +08:00 2
格式化一下再看:
function rstr2binl(input) { var i; var output = [] output[(input.length >> 2) - 1] = undefined; for (i = 0; i < output.length; i += 1) { output[i] = 0; } var length8 = input.length * 8; for (i = 0; i < length8; i += 8) { output[i >> 5] |= (input.charCodeAt(i / 8) & 0xff) << i % 32; } return output; } |
6
quxinna OP @kokutou 测试'我'这个字的 MD5 的 16815254531798dc21ee979d1d9c6675 是忽略 255 以后字节,
a31d0f25367ebe046897f8a939ca4a9f 是正确的吧 |
7
no1xsyzy 2021-03-25 11:18:48 +08:00
Characters >255 have their high-byte silently ignored.
大于 255 的字符的高位字节会被无声地忽略。 |
8
debuggerx 2021-03-25 12:18:33 +08:00 via Android
|