6 releases
0.1.5 | Dec 6, 2022 |
---|---|
0.1.4 | Nov 16, 2022 |
#38 in #sha-2
8KB
A wrapper for sha2 library to get hash string with [0-9] & [a-z] & [A-Z] alphabet
Code example
fn main() {
let some_input = "some string";
let hashed = pretty_sha2::sha512::gen(some_input);
let random_hash = pretty_sha2::sha512::gen_rnd();
println!("{}", hashed); // KMW1haL81kP6KR4vwpQoxRngltgmiEoXIYATz6klwmvmIx62mulnQrHscoAy29k7
println!("{}", random_hash)
}
Dependencies
~480KB
~11K SLoC