UNPKG

@libp2p/crypto

Version:
15 lines (13 loc) 393 B
export interface CreateAESCipherOptions { algorithm?: string nonceLength?: number keyLength?: number digest?: string saltLength?: number iterations?: number algorithmTagLength?: number } export interface AESCipher { encrypt(data: Uint8Array, password: string | Uint8Array): Promise<Uint8Array> decrypt(data: Uint8Array, password: string | Uint8Array): Promise<Uint8Array> }