Registry / crypto / nacl
library0.5.3rscratesunverified

Rust implementation of NaCl cryptographic library with Scrypt key derivation added.

# Cargo.toml [dependencies] nacl = "0.5.3"
INSTALL
IMPORT
SIG · NACL
N
nacl
cryptorustv0.5.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

box_
use nacl::crypto_box::box_;

Generates a new keypair for crypto_box.

use nacl::crypto_box::box_; fn main() { let (pk, sk) = nacl::crypto_box::keypair(); println!("Keypair generated"); }
Debug
Known issues
gotchaScrypt parameters may be insecure if not chosen carefully.
fix
Use recommended parameters (N=16384, r=8, p=1) for production.
affects: >=0.5.0
Upgrade
Version history
0.5.3latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Amazon
1
Resources
nacl — cargo add nacl · libregistry