deno.com
method SubtleCrypto.digest
#SubtleCrypto.digest(): Promise<ArrayBuffer>

Computes a cryptographic hash (digest) of the given data.

This method is commonly used for verifying data integrity.

Examples #

#
// Compute the digest of given data using a cryptographic algorithm
await crypto.subtle.digest("SHA-256", data);

Parameters #

Return Type #

Promise<ArrayBuffer>

See #