MCPcopy Index your code
hub / github.com/dmarman/sha256algorithm / chunkString

Function chunkString

src/classes/utils.js:100–102  ·  view source on GitHub ↗
(str, length = 512)

Source from the content-addressed store, hash-verified

98}
99
100export function chunkString(str, length = 512) {
101 return str.match(new RegExp('.{1,' + length + '}', 'g')) || [];
102}
103
104export function rotateRight(value, r) { // https://github.com/dfrankland/bitwise-rotation/blob/master/src/index.js
105 const bitWidth = 32;

Callers 5

shaSteppedFunction · 0.90
MessageBlock.jsFile · 0.90
hexToBinaryFunction · 0.70
hexToStringFunction · 0.70
binaryToStringFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected