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
1 changed files with 1 additions and 2 deletions

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