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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user