MCPcopy
hub / github.com/IvanMathy/Boop / rstr

Function rstr

Boop/Boop/scripts/lib/hashes.js:518–521  ·  view source on GitHub ↗

* Calculate the MD5 of a raw string

(s)

Source from the content-addressed store, hash-verified

516 */
517
518 function rstr(s) {
519 s = (utf8) ? utf8Encode(s) : s;
520 return binl2rstr(binl(rstr2binl(s), s.length * 8));
521 }
522
523 /**
524 * Calculate the HMAC-MD5, of a key and some data (raw strings)

Callers 1

hashes.jsFile · 0.85

Calls 7

utf8EncodeFunction · 0.85
binl2rstrFunction · 0.85
binlFunction · 0.85
rstr2binlFunction · 0.85
binb2rstrFunction · 0.85
binbFunction · 0.85
rstr2binbFunction · 0.85

Tested by

no test coverage detected