js-sha512 icon indicating copy to clipboard operation
js-sha512 copied to clipboard

How to use sha384 function to hash string encoded in utf-16le?

Open JarJasAskom opened this issue 1 year ago • 1 comments

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.

image

JarJasAskom avatar Nov 04 '24 14:11 JarJasAskom

I use https://github.com/inexorabletash/text-encoding to convert strings to UTF-16 bytes, and sha384 accepts bytes as input.

emn178 avatar Nov 05 '24 13:11 emn178