web api interface
Crypto
Available in workers
The Crypto interface represents basic cryptography features available in the current context.
It allows access to a cryptographically strong random number generator and to cryptographic primitives.
The Crypto is available in windows using the crypto property and in workers using the crypto property.
Instance properties
subtleRead only- : Returns a
SubtleCryptoobject providing access to common cryptographic primitives, like hashing, signing, encryption, or decryption.
- : Returns a
Instance methods
getRandomValues()- : Fills the passed
TypedArraywith cryptographically sound random values.
- : Fills the passed
randomUUID()- : Returns a randomly generated, 36 character long v4 UUID.
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.