Browse Source

Do not log blake3 hash to stdout, fixes #136

pull/138/head
Duke 4 months ago
parent
commit
df67f779f7
  1. 4
      lib/src/lib.rs

4
lib/src/lib.rs

@ -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();

Loading…
Cancel
Save