mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-23 11:56:00 +01:00
rename all to PBKDF2_SHA256
This commit is contained in:
parent
ae54094fcd
commit
13e0cf0c47
@ -59,7 +59,7 @@ export class RegisterComponent {
|
||||
|
||||
this.name = this.name === '' ? null : this.name;
|
||||
this.email = this.email.toLowerCase();
|
||||
const kdf = KdfType.PBKDF2;
|
||||
const kdf = KdfType.PBKDF2_SHA256;
|
||||
const kdfIterations = 5000;
|
||||
const key = await this.cryptoService.makeKey(this.masterPassword, this.email, kdf, kdfIterations);
|
||||
const encKey = await this.cryptoService.makeEncKey(key);
|
||||
|
@ -276,7 +276,7 @@ export class CryptoService implements CryptoServiceAbstraction {
|
||||
async makeKey(password: string, salt: string, kdf: KdfType, kdfIterations: number):
|
||||
Promise<SymmetricCryptoKey> {
|
||||
let key: ArrayBuffer = null;
|
||||
if (kdf == null || kdf === KdfType.PBKDF2) {
|
||||
if (kdf == null || kdf === KdfType.PBKDF2_SHA256) {
|
||||
if (kdfIterations == null) {
|
||||
kdfIterations = 5000;
|
||||
} else if (kdfIterations < 5000) {
|
||||
|
Loading…
Reference in New Issue
Block a user