1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 09:43:23 +00:00

cache keyHash, proper param order for cipherString

This commit is contained in:
Kyle Spearrin
2019-04-03 14:18:55 -04:00
parent c63ff4485e
commit 0b0245b90f
2 changed files with 12 additions and 7 deletions

View File

@@ -16,11 +16,11 @@ export class CipherString {
if (data != null) {
// data and header
const encType = encryptedStringOrType as EncryptionType;
this.encryptedString = encType + '.' + data;
// iv
if (iv != null) {
this.encryptedString += ('|' + iv);
this.encryptedString = encType + '.' + iv + '|' + data;
} else {
this.encryptedString = encType + '.' + data;
}
// mac