Crypto — Web platform APIs
Cryptographic functionality for secure communication, data protection, and key management. Generate secure random numbers, encrypt and decrypt data, and manage cryptographic keys.
Eg crypto
AesCbcParamsAesCtrParamsAesDerivedKeyParamsAesGcmParamsAesKeyAlgorithmAesKeyGenParamsAlgorithmAlgorithmIdentifierBigIntegercrypto— The global instance of Crypto that provides access to the Web Crypto API, including cryptographically secure random number generation via Crypto.getRandomValues, random UUID generation via Crypto.randomUUID, and the low-level primitives exposed by SubtleCrypto through Crypto.subtle.Crypto— This Web Crypto API interface provides basic cryptographic functionality. It is accessed via the global crypto property, which gives access to cryptographically strong random number generation and to the low-level primitives exposed by SubtleCrypto through Crypto.subtle.CryptoKey— The CryptoKey dictionary of the Web Crypto API represents a cryptographic key.CryptoKeyPair— The CryptoKeyPair dictionary of the Web Crypto API represents a key pair for an asymmetric cryptography algorithm, also known as a public-key algorithm.EcdhKeyDeriveParamsEcdsaParamsEcKeyAlgorithmEcKeyGenParamsEcKeyImportParamsHashAlgorithmIdentifierHkdfParamsHmacImportParamsHmacKeyAlgorithmHmacKeyGenParamsJsonWebKeyKeyAlgorithmKeyFormatKeyTypeKeyUsageNamedCurvePbkdf2ParamsRsaHashedImportParamsRsaHashedKeyAlgorithmRsaHashedKeyGenParamsRsaKeyAlgorithmRsaKeyGenParamsRsaOaepParamsRsaOtherPrimesInfoRsaPssParamsSubtleCrypto— This Web Crypto API interface provides a number of low-level cryptographic functions. It is accessed via the Crypto.subtle properties available in a window context (via globalThis.crypto).