Skip to main content

@std/crypto@1.0.3
Built and signed on GitHub Actions

Extensions to the Web Crypto API

This package works with Deno, BrowsersIt is unknown whether this package works with Bun
This package works with Deno
It is unknown whether this package works with Bun
This package works with Browsers
JSR Score
100%
Published
3 months ago (1.0.3)
variable DIGEST_ALGORITHM_NAMES

All cryptographic hash/digest algorithms supported by std/crypto.

For algorithms that are supported by WebCrypto, the name here will match the one used by WebCrypto. Otherwise we prefer the formatting used in the algorithm's official specification. All names are uppercase to facilitate case-insensitive comparisons required by the WebCrypto spec.

Type

"BLAKE2B"
| "BLAKE2B-128"
| "BLAKE2B-160"
| "BLAKE2B-224"
| "BLAKE2B-256"
| "BLAKE2B-384"
| "BLAKE2S"
| "BLAKE3"
| "KECCAK-224"
| "KECCAK-256"
| "KECCAK-384"
| "KECCAK-512"
| "SHA-384"
| "SHA3-224"
| "SHA3-256"
| "SHA3-384"
| "SHA3-512"
| "SHAKE128"
| "SHAKE256"
| "TIGER"
| "RIPEMD-160"
| "SHA-224"
| "SHA-256"
| "SHA-512"
| "MD4"
| "MD5"
| "SHA-1"
| "FNV32"
| "FNV32A"
| "FNV64"
| "FNV64A"
[]

Add Package

deno add jsr:@std/crypto

Import symbol

import { DIGEST_ALGORITHM_NAMES } from "@std/crypto/crypto";

---- OR ----

Import directly with a jsr specifier

import { DIGEST_ALGORITHM_NAMES } from "jsr:@std/crypto/crypto";

Add Package

bunx jsr add @std/crypto

Import symbol

import { DIGEST_ALGORITHM_NAMES } from "@std/crypto/crypto";