js-sha512
js-sha512 copied to clipboard
How to use sha384 function to hash string encoded in utf-16le?
How to use sha384 function to hash string encoded in utf-16le?
Demo site
https://emn178.github.io/online-tools/sha384.html
does it correctly but there is no example how to do it programmatically.
I use https://github.com/inexorabletash/text-encoding to convert strings to UTF-16 bytes, and sha384 accepts bytes as input.