DigestAlgorithmDigest algorithms supported by the platform Crypto service.
Gotchas
SHA-1 is included for interoperability with existing protocols. Do not use SHA-1 for new security-sensitive designs.
Example (Using a digest algorithm)
import { Crypto } from "effect"
const algorithm: Crypto.DigestAlgorithm = "SHA-256"models
Source effect/Crypto.ts:371 lines
export type type DigestAlgorithm =
| "SHA-1"
| "SHA-256"
| "SHA-384"
| "SHA-512"
Digest algorithms supported by the platform Crypto service.
Gotchas
SHA-1 is included for interoperability with existing protocols. Do not use
SHA-1 for new security-sensitive designs.
Example (Using a digest algorithm)
import { Crypto } from "effect"
const algorithm: Crypto.DigestAlgorithm = "SHA-256"
DigestAlgorithm = "SHA-1" | "SHA-256" | "SHA-384" | "SHA-512"Referenced by 2 symbols