Open ugobey opened 2 years ago
Hi there.
I was using the built in NodeJS crypto module but it's not supported in versions less than 14 of Node so I prefer to use your module.
I am having issues understanding how I convert this function to work the same in your module.
function toHash(csUUID) { const hash = crypto.createHash("sha256"); hash.update(utf8.encode(csUUID)); const resAsBuff = hash.digest().slice(0, 8); return resAsBuff.readBigUInt64BE().toString(10); } var hashedUID = toHash(csUUID);
Thanks!
I also met this problem. Have you solved it
No I just upgraded node
Hi there.
I was using the built in NodeJS crypto module but it's not supported in versions less than 14 of Node so I prefer to use your module.
I am having issues understanding how I convert this function to work the same in your module.
Thanks!