mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
Deprecate encstring's decrypt function (#15703)
This commit is contained in:
@@ -153,6 +153,10 @@ export class EncString implements Encrypted {
|
|||||||
return EXPECTED_NUM_PARTS_BY_ENCRYPTION_TYPE[encType] === encPieces.length;
|
return EXPECTED_NUM_PARTS_BY_ENCRYPTION_TYPE[encType] === encPieces.length;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated - This function is deprecated. Use EncryptService.decryptString instead.
|
||||||
|
* @returns - The decrypted string, or `[error: cannot decrypt]` if decryption fails.
|
||||||
|
*/
|
||||||
async decrypt(
|
async decrypt(
|
||||||
orgId: string | null,
|
orgId: string | null,
|
||||||
key: SymmetricCryptoKey | null = null,
|
key: SymmetricCryptoKey | null = null,
|
||||||
|
|||||||
Reference in New Issue
Block a user