Command-line utility to encrypt Solana keypairs using AWS KMS.
- Encode Solana keypair JSON to base64
- Encrypt/decrypt using AWS KMS
- Public key verification
- Support for existing or new KMS keys
cargo build --release
export AWS_ACCESS_KEY_ID=your_access_key
export AWS_SECRET_ACCESS_KEY=your_secret_key
export AWS_REGION=us-west-2 # Default region
./kms-encryption-kit <PATH_TO_KEYPAIR_JSON_FILE> <PUBLIC_KEY> [KMS_KEY_ID]
./kms-encryption-kit decrypt <ENCRYPTED_BASE_64_KEY> <KMS_KEY_ID>
# Encrypt
./kms-encryption-kit path/to/my-keypair.json MyKeypairPublicKey1111111111111 some-secure-kms-key-id
# Decrypt
./kms-encryption-kit decrypt <ENCRYPTED_BASE_64_KEY> some-secure-kms-key-id
See Cargo.toml
for complete list
- KMS permissions for key creation/encryption/decryption
- Valid AWS credentials