uni-ticket-system/node_modules/licia/wordsToBytes.js

10 lines
231 B
JavaScript
Raw Normal View History

2023-12-05 02:11:10 +00:00
exports = function(words) {
var bytes = [];
for (var b = 0, len = words.length * 32; b < len; b += 8) {
bytes.push((words[b >>> 5] >>> (24 - (b % 32))) & 0xff);
}
return bytes;
};
module.exports = exports;