diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-04-09 17:50:47 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-08-18 23:26:34 +0200 |
commit | 625bd60980741b43344745e7c6a2b8660382e3df (patch) | |
tree | 21e73bce9756f2d9e6b0f5e25a6fed232e2f52f1 /src | |
parent | eb715599c9e2e447f649d9fd2dd531820d69400c (diff) |
Revert back to argon2i
Diffstat (limited to 'src')
-rw-r--r-- | src/PasswordHash.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/PasswordHash.cpp b/src/PasswordHash.cpp index b757583..f877d20 100644 --- a/src/PasswordHash.cpp +++ b/src/PasswordHash.cpp @@ -14,7 +14,7 @@ namespace odhtdb result.data = new uint8_t[HASH_PASSWORD_LENGTH]; result.size = HASH_PASSWORD_LENGTH; - if(argon2d_hash_raw(tCost, mCost, parallelism, plainPassword.data, plainPassword.size, salt.data, salt.size, result.data, HASH_PASSWORD_LENGTH) != ARGON2_OK) + if(argon2i_hash_raw(tCost, mCost, parallelism, plainPassword.data, plainPassword.size, salt.data, salt.size, result.data, HASH_PASSWORD_LENGTH) != ARGON2_OK) throw std::runtime_error("Failed to hash password"); return result; |