Encrypt Wallet
ordnet_security_encrypt_walletEncrypt a WIF private key with AES-256-GCM to create a securely stored wallet. Decrypt it later with the same password using ordnet_wallet_init.
Instructions
Encrypt a WIF private key with AES-256-GCM.
Use this to create an encrypted wallet that can be stored safely. The encrypted data can later be decrypted with ordnet_wallet_init with the password.
Args:
wif (string): WIF private key to encrypt
password (string): Strong password (min 12 chars)
Returns: { encrypted: { iv, data, tag, salt } }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wif | Yes | WIF private key to encrypt | |
| password | Yes | Strong password for encryption |