This commit is contained in:
@ -5,5 +5,5 @@ pub fn sha512(bytes: &[u8]) -> String {
|
||||
let mut hasher = Sha512::new();
|
||||
hasher.update(bytes);
|
||||
let h = hasher.finalize();
|
||||
format!("{:x}", h)
|
||||
base16ct::lower::encode_string(h.as_slice())
|
||||
}
|
||||
|
Reference in New Issue
Block a user