Back to Libraries
libsodium.js
1k
JavaScript port of libsodium cryptographic library
⚡ WASMCryptography
License
ISC
Released
2016
Stars
1k
Use Cases
Secure encryption, password hashing, key exchange, authenticated encryption
Code Example
import sodium from 'libsodium-wrappers';
await sodium.ready;
const key = sodium.crypto_secretbox_keygen();
const nonce = sodium.randombytes_buf(sodium.crypto_secretbox_NONCEBYTES);