fix: use original argon2 config instead of default

This commit is contained in:
dusk 2023-10-13 22:57:53 +03:00
parent 029e45aee8
commit c3e6db5071
Signed by: dusk
SSH Key Fingerprint: SHA256:Abmvag+juovVufZTxyWY8KcVgrznxvBjQpJesv071Aw

View File

@ -13,7 +13,7 @@ fn get_current_time() -> u64 {
}
fn hash_string(data: &[u8]) -> Result<String, argon2::Error> {
argon2::hash_encoded(data, "11111111".as_bytes(), &argon2::Config::default())
argon2::hash_encoded(data, "11111111".as_bytes(), &argon2::Config::original())
}
fn generate_random_string(len: usize) -> String {