mirror of
https://github.com/bitwarden/android.git
synced 2024-12-25 02:18:27 +03:00
use hardcoded kdfiterations for send passwords (#1315)
This commit is contained in:
parent
d0e424abd9
commit
654d71cbbc
1 changed files with 1 additions and 2 deletions
|
@ -102,9 +102,8 @@ namespace Bit.Core.Services
|
|||
|
||||
if (password != null)
|
||||
{
|
||||
var kdfIterations = await _userService.GetKdfIterationsAsync() ?? 100000;
|
||||
var passwordHash = await _cryptoFunctionService.Pbkdf2Async(password, model.Key,
|
||||
CryptoHashAlgorithm.Sha256, kdfIterations);
|
||||
CryptoHashAlgorithm.Sha256, 100000);
|
||||
send.Password = Convert.ToBase64String(passwordHash);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue