Web Crypto API Demo
Hashing, secure randomness and authenticated encryption with the Web Crypto API. The page must run in a secure context (HTTPS or localhost).
SHA-256 digest
Uses SubtleCrypto.digest() on the UTF-8 bytes of the text below.
${hashResult}
${randomResult}
AES-GCM encrypt / decrypt
Generates an AES-GCM-256 key with generateKey(),
round-trips it through exportKey() / importKey(),
then encrypts and decrypts the text above.
${ciphertext}
${decrypted}
Random UUID
Uses Crypto.randomUUID().
${uuid}
${status}
${capabilities}