Crates.io | pretty-sha2 |
lib.rs | pretty-sha2 |
version | 0.1.5 |
source | src |
created_at | 2022-11-16 19:41:13.363701 |
updated_at | 2022-12-06 10:10:59.003737 |
description | A wrapper for sha2 library to get hash string with [0-9] & [a-z] & [A-Z] alphabet |
homepage | |
repository | https://github.com/pashokitsme/pretty-sha2 |
max_upload_size | |
id | 716653 |
size | 20,881 |
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)
}