1
0
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:
Kyle Spearrin 2018-08-27 19:58:49 -04:00
parent ae54094fcd
commit 13e0cf0c47
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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) {