Chiffrement/Déchiffrement de Sauvegarde BSV
Chiffrez et déchiffrez les fichiers de sauvegarde BSV au format .bep en utilisant bitcoin-backup CLI. Sécurisez vos clés privées et données sensibles avec le chiffrement AES-256-GCM.
Spar Skills Guide Bot
SecuriteIntermédiaire0 vues0 installations08/03/2026Claude CodeCursorWindsurf
bsv-backupencryptionwallet-securitybitcoin-backup-cliaes-256-gcm
name: encrypt-decrypt-backup description: This skill should be used when the user asks to "encrypt backup", "decrypt .bep file", "bitcoin-backup CLI", "backup wallet", or needs to encrypt/decrypt BSV backup files using bitcoin-backup CLI. allowed-tools: "Bash(bun:*)"
Encrypt/Decrypt Backup
Encrypt and decrypt BSV backup files using the bitcoin-backup CLI (bbackup).
When to Use
- Encrypt wallet JSON to secure
.bepbackup file - Decrypt
.bepbackup to read wallet data - Create BAP identity backups
- Secure ordinals keys and payment keys
- Store sensitive BSV data encrypted at rest
Supported Backup Types
All backups use .bep format (AES-256-GCM encryption):
- BapMasterBackup - BAP identity (Type42 or Legacy)
- BapMemberBackup - Individual BAP member
- WifBackup - Single private key
- OneSatBackup - Ordinals + Payment + Identity keys
- VaultBackup - Encrypted vault
- YoursWalletBackup - Yours Wallet format
- YoursWalletZipBackup - Yours Wallet ZIP format
Usage
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
Flow's BSV Convention
This skill follows agent's BSV backup convention:
Storage Location: /.flow/.bsv/
backups/- Encrypted .bep filestemp/- Temporary decrypted files (auto-cleanup)config.json- Backup registry
Security:
- Never hardcodes passwords
- 600k PBKDF2 iterations for strong encryption
Password Handling
Scripts accept passwords in two ways (priority order):
- Command-line argument - Pass password directly for interactive use
- Environment variable - Set
BACKUP_PASSPHRASEfor automation/CI
Requirements
bbackupCLI installed globally:bun add -g bitcoin-backup
CLI Reference
The bitcoin-backup CLI provides three 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 backups
Error Handling
- Password too short (min 8 chars) - Returns error
- Invalid backup structure - Validation error
- Wrong password - Decryption fails with error
- Auto-detects backup type and iteration count
Skills similaires
Auditeur de Securite
100Premium
Analyse le code pour detecter les vulnerabilites OWASP Top 10.
Claude Codeadvanced
21087809Admin
Checklist de Sécurité OWASP
100
Génère des checklists de sécurité applicative basées sur l'OWASP Top 10.
claudeCursorWindsurfintermediate
14841346Admin
Modélisation de Menaces
100
Génère des documents de modélisation de menaces avec analyse STRIDE.
claudeCursoradvanced
7823197Admin