argonautica 0.2.0

Idiomatic Argon2 password hashing for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
extern crate argonautica;

use argonautica::Hasher;

fn main() {
    let mut hasher = Hasher::default();
    let hash = hasher
        .with_password("P@ssw0rd")
        .with_secret_key("\
            secret key that you should really store in a .env file \
            instead of in code, but this is just an example\
        ")
        .hash()
        .unwrap();
    println!("{}", &hash);
}