Do not log blake3 hash to stdout, fixes #136

This commit is contained in:
Duke
2024-01-12 19:36:13 -05:00
parent 0f8f028d7d
commit df67f779f7

View File

@@ -45,7 +45,9 @@ pub extern fn blake3_PW(pw: *const c_char) -> *mut c_char{
let data = passwd.as_bytes();
// Hash an input all at once.
let hash1 = blake3::hash(data).to_hex();
println!("\nBlake3 Hash: {}", hash1);
// This is sensitive metadata, do not log it to stdout
//println!("\nBlake3 Hash: {}", hash1);
println!("\nBlake3 Hash calculated");
//let sttring = CString::new(hash1).unwrap();
let e_str = CString::new(format!("{}", hash1)).unwrap();