pretty-sha2

Crates.iopretty-sha2
lib.rspretty-sha2
version0.1.5
sourcesrc
created_at2022-11-16 19:41:13.363701
updated_at2022-12-06 10:10:59.003737
descriptionA wrapper for sha2 library to get hash string with [0-9] & [a-z] & [A-Z] alphabet
homepage
repositoryhttps://github.com/pashokitsme/pretty-sha2
max_upload_size
id716653
size20,881
(pashokitsme)

documentation

README

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)
}

Commit count: 11

cargo fmt