UNPKG

js-databox

Version:

databox & metabox

12 lines (11 loc) 394 B
declare class Encrypt { aesKeyGen(): Promise<string>; genRSAKey(): Promise<{ privateKey: string; publicKey: string; }>; encryptPrivateKey(privateKey: string, passwordHash: string, Iv: string): Promise<string>; decryptPrivateKey(prePrivateKey: string, passwordHash: string, Iv: string): Promise<string>; } export declare const EncryptApi: Encrypt; export {};