xcrypt

Crates.ioxcrypt
lib.rsxcrypt
version0.3.0
sourcesrc
created_at2024-10-09 13:27:16.502478
updated_at2024-10-10 20:29:05.63158
descriptionBindings for libxcrypt
homepagehttps://github.com/nikstur/libcxcrypt-rs
repositoryhttps://github.com/nikstur/libcxcrypt-rs
max_upload_size
id1402386
size9,669
(nikstur)

documentation

README

libxcrypt-rs

Rust bindings for libxcrypt

Usage

Add xcrypt to your Cargo.toml:

cargo add xcrypt

Hash a phrase with the best available hashing method and default parameters:

use xcrypt::{crypt, crypt_gensalt};

fn main() {
    let setting = crypt_gensalt(None, 0, None).unwrap();
    let hashed_phrase = crypt("hello", &setting).unwrap();

    println!("{hashed_phrase}");
}
Commit count: 0

cargo fmt