skills/encrypt-decrypt-backup/SKILL.md
This skill should be used when the user asks to "encrypt backup", "decrypt .bep file", "bitcoin-backup CLI", "backup wallet", "Touch ID password cache", "upgrade backup iterations", or needs to encrypt/decrypt BSV backup files using the bbackup CLI.
npx skillsauth add b-open-io/bsv-skills encrypt-decrypt-backupInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Encrypt and decrypt BSV backup files using the bitcoin-backup CLI (bbackup).
.bep backup file.bep backup to read wallet dataAll backups use .bep format (AES-256-GCM encryption):
Run the encrypt or decrypt scripts:
# Encrypt a wallet JSON file
bun run /path/to/skills/encrypt-decrypt-backup/scripts/encrypt.ts wallet.json output.bep
# Decrypt a backup file
bun run /path/to/skills/encrypt-decrypt-backup/scripts/decrypt.ts backup.bep
# Decrypt to specific output file
bun run /path/to/skills/encrypt-decrypt-backup/scripts/decrypt.ts backup.bep wallet.json
This skill follows agent's BSV backup convention:
Storage Location: /.flow/.bsv/
backups/ - Encrypted .bep filestemp/ - Temporary decrypted files (auto-cleanup)config.json - Backup registrySecurity:
Scripts accept passwords in two ways (priority order):
BACKUP_PASSPHRASE for automation/CIbbackup CLI installed globally: bun add -g bitcoin-backupThe bitcoin-backup CLI provides four commands:
bbackup enc <input> -p <password> -o <output> - Encrypt JSON to .bepbbackup dec <input> -p <password> -o <output> - Decrypt .bep to JSONbbackup upg <input> -p <password> -o <output> - Upgrade legacy backupsbbackup forget <file> - Remove cached Touch ID passwordOn Apple Silicon Macs, bbackup can cache passwords in the Secure Enclave via @1sat/vault:
bbackup enc backup.json -o backup.bep --touchid — encrypt and cache the passwordbbackup dec backup.bep --touchid — decrypt using cached password (Touch ID prompt)bbackup forget backup.bep — remove cached passwordRequires macOS arm64 with Xcode Command Line Tools. Cached passwords are hardware-bound and cannot be extracted.
development
This skill should be used when the user asks to integrate "Yours Wallet", "connect a BSV wallet", use "BRC-100", "pay with BSV wallet", add "wallet checkout in a web app", use "yours-wallet-provider", build a "pay with Yours Wallet" button, access "window.CWI", or connect a React app to a BRC-100 wallet.
development
This skill should be used when the user asks to "send BSV", "transfer satoshis", "create payment transaction", "send from WIF", "P2PKH transaction", or needs to build, sign, and broadcast P2PKH transactions from a WIF private key using @bsv/sdk.
development
This skill should be used when the user asks to "encrypt message with BSV key", "decrypt with private key", "ECDH encryption", "AES-256-GCM BSV", "EncryptedMessage", "BRC-2 encryption", or needs to encrypt/decrypt data using BSV keys and @bsv/sdk.
tools
This skill should be used when the user asks to "implement BRC-100 wallet", "use wallet-toolbox", "TypeScript BSV wallet", "BRC-100 implementation", "desktop wallet", "Electron wallet", "browser wallet", "IndexedDB wallet storage", "wallet actions", "wallet baskets", "UTXO management", "createAction", "listOutputs", "wallet certificates", "WalletClient", "noSend", "BEEF payment", "pay-beef", "send BEEF", "Transaction.fromBEEF", "toHexBEEF", or needs guidance on building conforming wallets using @bsv/wallet-toolbox or connecting to a user's BRC-100 wallet via WalletClient.