Back to Wails

Web Crypto API Demo

v3/examples/web-apis/webcrypto/frontend/index.html

2.13.0793 B
Original Source

Web Crypto API Demo

The Web Cryptography API provides cryptographic operations including hashing, signature generation, encryption/decryption, and key management.

Web Crypto API: checking...

Random Values

16 bytes32 bytes64 bytesGenerate UUID Click a button to generate random values...

Hash Functions

Text to hash:Hello, World!

Algorithm:SHA-1SHA-256SHA-384SHA-512

Compute Hash Hash will appear here...

Symmetric Encryption (AES-GCM)

Text to encrypt:Secret message!Password:EncryptDecrypt Encrypted/decrypted data will appear here...

Digital Signatures (ECDSA)

Message to sign:This is an authentic message.Generate Key PairSign MessageVerify Signature Generate a key pair first...

HMAC

Message:Message to authenticateSecret Key:Compute HMAC HMAC will appear here...