1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 17:23:37 +00:00

AuditService (#2)

* Add AuditService.

* Change sha1 to use Webcrypto.

* Add interface for AuditService.

* Move PwnedPasswodsApi constant outside class.

* Change FromBufferToHex implementation to simpler code.

* Use correct string to array function.

* Change auditService interface to abstract class. Add missing type to utils.
This commit is contained in:
Oscar Hinton
2018-02-28 16:52:35 +01:00
committed by Kyle Spearrin
parent ab00dfd399
commit 1aabb42e47
5 changed files with 49 additions and 0 deletions

View File

@@ -31,4 +31,5 @@ export abstract class CryptoService {
decrypt: (cipherString: CipherString, key?: SymmetricCryptoKey, outputEncoding?: string) => Promise<string>;
decryptFromBytes: (encBuf: ArrayBuffer, key: SymmetricCryptoKey) => Promise<ArrayBuffer>;
rsaDecrypt: (encValue: string) => Promise<string>;
sha1: (password: string) => Promise<string>;
}