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
- TypeScript
- JavaScript
The public address is NOT encrypted - only the private key and mnemonic are
protected.
Related Methods
Decrypt Wallet
Decrypt a wallet
Encrypt Private Key
Encrypt just the key