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.
An object with this interface is available on Web context via the Window.crypto
property.
This interface implements properties defined on RandomSource
.
Crypto.subtle
Read only
SubtleCrypto
object providing access to common cryptographic primitives, like hashing, signing, encryption or decryption.This interface implements methods defined on RandomSource
.
RandomSource.getRandomValues()
TypedArray
with cryptographically sound random values.Specification | Status | Comment |
---|---|---|
Web Cryptography API The definition of 'Crypto' in that specification. | Candidate Recommendation | Initial definition |
© 2005–2017 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/Crypto