Sha256: 09478a3b9836c9a054374b85c2e8185fa4761e80db785c2dc636b17dd2c8ccab

Contents?: true

Size: 331 Bytes

Versions: 4

Compression:

Stored size: 331 Bytes

Contents

extern crate libpasta;

// We re-export the rpassword crate for CLI password input.
use libpasta::rpassword::*;

fn main() {
    let password = prompt_password_stdout("Please enter your password:").unwrap();
    let password_hash = libpasta::hash_password(&password);
    println!("The hashed password is: '{}'", password_hash);
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
libpasta-0.1.0.pre.rc0-x86_64-linux ext/pasta-bindings/libpasta/examples/hash_password.rs
libpasta-0.0.6-x86_64-linux ext/pasta-bindings/libpasta/examples/hash_password.rs
libpasta-0.0.5 ext/pasta-bindings/libpasta/examples/hash_password.rs
libpasta-0.0.5-x86_64-linux ext/pasta-bindings/libpasta/examples/hash_password.rs