mirror of
https://github.com/bitwarden/mobile.git
synced 2024-11-22 11:35:21 +01:00
use hardcoded kdfiterations for send passwords (#1315)
This commit is contained in:
parent
d0e424abd9
commit
654d71cbbc
@ -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 New Issue
Block a user