Crypto - Web APIs | MDN

Instance properties

Crypto.subtle Read only Secure context

Returns a SubtleCrypto object providing access to common cryptographic primitives, like hashing, signing, encryption, or decryption.

Instance methods

Crypto.getRandomValues()

Fills the passed TypedArray with cryptographically sound random values.

Crypto.randomUUID() Secure context

Returns a randomly generated, 36 character long v4 UUID.

Specifications

Specification
Web Cryptography Level 2
# crypto-interface

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on by MDN contributors.