@adorsys-gis/web-auth-prf
Version:
A WebAuthn library implementing password-based key derivation functions (PRF) for secure authentication and encryption
10 lines (9 loc) • 456 B
TypeScript
import { EncryptionKey } from "./keyDerivationService";
export interface LocalDB {
encryptData(plaintext: string, key: EncryptionKey): Promise<ArrayBuffer>;
decryptData(encrypted: ArrayBuffer, key: EncryptionKey): Promise<string>;
}
export declare class LocalDBService implements LocalDB {
encryptData(plaintext: string, key: EncryptionKey): Promise<ArrayBuffer>;
decryptData(encrypted: ArrayBuffer, key: EncryptionKey): Promise<string>;
}