Skip to main content

Method Signature

Parameters

Wallet
required
The wallet object to encrypt
string
required
Password for encryption (use a strong password!)

Returns

string
The encrypted wallet data
string
The wallet’s public address (unencrypted)

Examples

The public address is NOT encrypted - only the private key and mnemonic are protected.

Decrypt Wallet

Decrypt a wallet

Encrypt Private Key

Encrypt just the key