Skip to content
SwapKit is a powerful suite of tools for building blockchain applications.

encryptToKeyStore

encryptToKeyStore(phrase, password): Promise<{ crypto: { cipher: string; cipherparams: { iv: string; }; ciphertext: string; kdf: string; kdfparams: { c: number; dklen: number; prf: string; salt: string; }; mac: string; }; meta: string; version: number; }>

Defined in: wallets/src/keystore/helpers.ts:34

string

string

Promise<{ crypto: { cipher: string; cipherparams: { iv: string; }; ciphertext: string; kdf: string; kdfparams: { c: number; dklen: number; prf: string; salt: string; }; mac: string; }; meta: string; version: number; }>