df-crypto 0.1.2

This is an crypto
Documentation
1
2
3
4
5
6
7
8
9
use crypto::digest::Digest;
use crypto::md5::Md5;

/// 字符串MD5
pub fn md5<S: Into<String>>(input: S) -> String {
    let mut md5 = Md5::new();
    md5.input_str(&input.into());
    md5.result_str()
}