Skip to content

mirrorworld-universe/solana-kms-keypair-encryption-kit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KMS Encryption Kit

Command-line utility to encrypt Solana keypairs using AWS KMS.

Features

  • Encode Solana keypair JSON to base64
  • Encrypt/decrypt using AWS KMS
  • Public key verification
  • Support for existing or new KMS keys

Setup

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

Usage

Encrypt keypair:

./kms-encryption-kit <PATH_TO_KEYPAIR_JSON_FILE> <PUBLIC_KEY> [KMS_KEY_ID]

Decrypt encrypted key:

./kms-encryption-kit decrypt <ENCRYPTED_BASE_64_KEY> <KMS_KEY_ID>

Example:

# 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

Dependencies

See Cargo.toml for complete list

AWS Requirements

  • KMS permissions for key creation/encryption/decryption
  • Valid AWS credentials

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages