import { wasmDigestAlgorithms } from "https://dotland.deno.dev/std@0.215.0/crypto/mod.ts";
All cryptographic hash/digest algorithms supported by std/crypto/_wasm.
For algorithms that are supported by WebCrypto, the name here must match the one used by WebCrypto. Otherwise we should prefer the formatting used in the official specification. All names are uppercase to facilitate case-insensitive comparisons required by the WebCrypto spec.
type
import { wasmDigestAlgorithms } from "https://dotland.deno.dev/std@0.215.0/crypto/mod.ts";
Extensions to the Web Crypto API supporting additional encryption APIs, but also delegating to the built-in APIs when possible.
Provides additional digest algorithms that are not part of the WebCrypto
standard as well as a subtle.digest
and subtle.digestSync
methods.
The KeyStack
export implements the {@link KeyRing
} interface
for managing rotatable keys for signing data to prevent tampering, like with
HTTP cookies.
Supported algorithms
Here is a list of supported algorithms. If the algorithm name in WebCrypto and Wasm/Rust is the same, this library prefers to use algorithms that are supported by WebCrypto.
WebCrypto:
SHA-384
SHA-256
SHA-512
(length-extendable and collidable)
Wasm/Rust:
BLAKE2B-128
BLAKE2B-160
BLAKE2B-224
BLAKE2B-256
BLAKE2B-384
BLAKE2B
BLAKE2S
BLAKE3
FNV32
(length-extendable)FNV32A
(length-extendable)FNV64
(length-extendable)FNV64A
(length-extendable)KECCAK-224
KECCAK-256
KECCAK-384
KECCAK-512
SHA-384
SHA3-224
SHA3-256
SHA3-384
SHA3-512
SHAKE128
SHAKE256
TIGER
RIPEMD-160
(length-extendable)SHA-224
(length-extendable)SHA-256
(length-extendable)SHA-512
(length-extendable)MD4
(collidable and length-extendable)MD5
(collidable and length-extendable)SHA-1
(collidable and length-extendable)