1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-06-25 10:26:02 +02:00

use hardcoded kdfiterations for send passwords (#1315)

This commit is contained in:
Matt Portune 2021-03-13 12:40:41 -05:00 committed by GitHub
parent d0e424abd9
commit 654d71cbbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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