df-crypto 0.1.5

This is an crypto
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use df_crypto::hmac::str_to_hmacsha256;
use df_crypto::sha;
use df_crypto::md5::str_to_md5;

fn main() {
    let data = sha::str_to_sha256("1111");
    println!("{}", data);
    let data = str_to_md5("1111");
    println!("{}", data);
    let data = str_to_hmacsha256("my secret and secure key", "input message");
    println!("{}", data);
}