1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 16:53:34 +00:00

apply collection and folder views

This commit is contained in:
Kyle Spearrin
2018-01-25 14:57:42 -05:00
parent 8d2a90e496
commit 3869dcaf7b
10 changed files with 74 additions and 36 deletions

View File

@@ -25,7 +25,8 @@ export abstract class CryptoService {
makeKey: (password: string, salt: string) => SymmetricCryptoKey;
hashPassword: (password: string, key: SymmetricCryptoKey) => Promise<string>;
makeEncKey: (key: SymmetricCryptoKey) => Promise<CipherString>;
encrypt: (plainValue: string | Uint8Array, key?: SymmetricCryptoKey, plainValueEncoding?: string) => Promise<CipherString>;
encrypt: (plainValue: string | Uint8Array, key?: SymmetricCryptoKey,
plainValueEncoding?: string) => Promise<CipherString>;
encryptToBytes: (plainValue: ArrayBuffer, key?: SymmetricCryptoKey) => Promise<ArrayBuffer>;
decrypt: (cipherString: CipherString, key?: SymmetricCryptoKey, outputEncoding?: string) => Promise<string>;
decryptFromBytes: (encBuf: ArrayBuffer, key: SymmetricCryptoKey) => Promise<ArrayBuffer>;