@libp2p/crypto
Version:
Crypto primitives for libp2p
14 lines • 458 B
TypeScript
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>;
}
//# sourceMappingURL=interface.d.ts.map