digestAsync

The digest() method of the SubtleCrypto interface generates a digest of the given data, using the specified hash function.

MDN Reference