1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-06 00:13:28 +00:00

Remove legacy key support form tools code (#15349)

This commit is contained in:
Bernd Schoolmann
2025-07-07 13:27:50 +02:00
committed by GitHub
parent c7fc9b88fc
commit 03a7530f8b
3 changed files with 3 additions and 3 deletions

View File

@@ -71,7 +71,7 @@ export class BitwardenJsonImporter extends BaseImporter implements Importer {
this.organizationId,
);
if (keyForDecryption == null) {
keyForDecryption = await this.keyService.getUserKeyWithLegacySupport();
keyForDecryption = await this.keyService.getUserKey();
}
const encKeyValidation = new EncString(results.encKeyValidation_DO_NOT_EDIT);
const encKeyValidationDecrypt = await this.encryptService.decryptString(

View File

@@ -365,7 +365,7 @@ export class ImportService implements ImportServiceAbstraction {
const c = await this.cipherService.encrypt(importResult.ciphers[i], activeUserId);
request.ciphers.push(new CipherRequest(c));
}
const userKey = await this.keyService.getUserKeyWithLegacySupport(activeUserId);
const userKey = await this.keyService.getUserKey(activeUserId);
if (importResult.folders != null) {
for (let i = 0; i < importResult.folders.length; i++) {
const f = await this.folderService.encrypt(importResult.folders[i], userKey);

View File

@@ -225,7 +225,7 @@ export class IndividualVaultExportService
await Promise.all(promises);
const userKey = await this.keyService.getUserKeyWithLegacySupport(activeUserId);
const userKey = await this.keyService.getUserKey(activeUserId);
const encKeyValidation = await this.encryptService.encryptString(Utils.newGuid(), userKey);
const jsonDoc: BitwardenEncryptedIndividualJsonExport = {