Skip to content
Back to Libraries

TweetNaCl.js

2k

Port of TweetNaCl cryptographic library

License
Unlicense
Released
2014
Stars
2k

Use Cases

Public-key encryption, digital signatures, secret-key encryption, hashing

Code Example

import nacl from 'tweetnacl';
const keyPair = nacl.box.keyPair();
const message = nacl.randomBytes(32);
const nonce = nacl.randomBytes(24);

Related Libraries