MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / md5blk

Function md5blk

scripts/libs/crypto/md5.js:140–152  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

138 * 8-bit unsigned value arrays.
139 */
140function md5blk(s) {
141 /* I figured global was faster. */
142 var md5blks = [],
143 i; /* Andy King said do it this way. */
144 for (i = 0; i < 64; i += 4) {
145 md5blks[i >> 2] =
146 s.charCodeAt(i) +
147 (s.charCodeAt(i + 1) << 8) +
148 (s.charCodeAt(i + 2) << 16) +
149 (s.charCodeAt(i + 3) << 24);
150 }
151 return md5blks;
152}
153
154var hex_chr = "0123456789abcdef".split("");
155

Callers 1

md51Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected