Reference : https://8gwifi.org/docs/window-crypto...
web crypto api tutorial
The SubtleCrypto.digest() method returns a Promise of a digest generated from the hash function and text given as parameters.
web crypto digest api supports family of SHA algorithms, older hashing algorithms family like MD5 is not supported by this api