Registry / crypto / rust-argon2

rust-argon2

JSON →
library3.0.0rscratesunverified

Rust implementation of the Argon2 password hashing function.

# Cargo.toml [dependencies] rust-argon2 = "3.0.0"
INSTALL
IMPORT
SIG · RUST-ARGON2
R
rust-argon2
cryptorustv3.0.0
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.

Argon2
use rust_argon2::Argon2;

Hashes a password with Argon2 using default parameters.

use rust_argon2::Argon2; fn main() { let argon2 = Argon2::default(); let hash = argon2.hash_password(b"password", b"somesalt").unwrap(); println!("{}", hash); }
Debug
Known issues
breakingVersion 3.0.0 changed the API; old code may break.
fix
Update to use `hash_password` instead of `hash_encoded`.
affects: >=3.0.0
Upgrade
Version history
3.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
12
Resources
rust-argon2 — cargo add rust-argon2 · libregistry