An open API service indexing awesome lists of open source software.

https://github.com/holasoymas/rsha

A sha256 hashing library implementation in rust
https://github.com/holasoymas/rsha

cryptography hashing rust rust-library sha256

Last synced: 8 months ago
JSON representation

A sha256 hashing library implementation in rust

Awesome Lists containing this project

README

          

# rsha

A simple to use hashing library in rust

# install

```bash
cargo add rsha
```

# Examples

```rust
use rsha::sha256;

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

This return a array of `[u32; 8]`

```rust
use rsha::sha256;

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