rsha 0.1.2

A hashing library implementation in rust
Documentation
  • Coverage
  • 50%
    3 out of 6 items documented2 out of 2 items with examples
  • Size
  • Source code size: 7.43 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.22 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • holasoymas

rsha

A simple to use hashing library in rust

install

cargo add rsha

Examples

use rsha::sha256;

fn main(){
let str = "知識は自由への鍵です。";
let hash = sha256::hash(str);
println("{str} -> {hash}");
}

This return a array of [u32; 8]

use rsha::sha256;

fn main(){
let str = "make me sha";
let hash = sha256::hash_arr(str);
println("{str} -> {hash}");
}