Global Rank · of 601 Skills
encrypt-decrypt-backup AI Agent Skill
View Source: b-open-io/bsv-skills
CriticalInstallation
npx skills add b-open-io/bsv-skills --skill encrypt-decrypt-backup 21
Installs
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)
- BapAccountBackup - Individual BAP account key
- 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.jsonFlow'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 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 password
Touch ID Password Caching (macOS arm64)
On 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 password
Requires macOS arm64 with Xcode Command Line Tools. Cached passwords are hardware-bound and cannot be extracted.
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
Installs
Security Audit
View Source
b-open-io/bsv-skills
More from this source
Power your AI Agents with
the best open-source models.
Drop-in OpenAI-compatible API. No data leaves Europe.
Explore Inference APIGLM
GLM 5
$1.00 / $3.20
per M tokens
Kimi
Kimi K2.5
$0.60 / $2.80
per M tokens
MiniMax
MiniMax M2.5
$0.30 / $1.20
per M tokens
Qwen
Qwen3.5 122B
$0.40 / $3.00
per M tokens
How to use this skill
Install encrypt-decrypt-backup by running npx skills add b-open-io/bsv-skills --skill encrypt-decrypt-backup in your project directory. Run the install command above in your project directory. The skill file will be downloaded from GitHub and placed in your project.
No configuration needed. Your AI agent (Claude Code, Cursor, Windsurf, etc.) automatically detects installed skills and uses them as context when generating code.
The skill enhances your agent's understanding of encrypt-decrypt-backup, helping it follow established patterns, avoid common mistakes, and produce production-ready output.
What you get
Skills are plain-text instruction files — not executable code. They encode expert knowledge about frameworks, languages, or tools that your AI agent reads to improve its output. This means zero runtime overhead, no dependency conflicts, and full transparency: you can read and review every instruction before installing.
Compatibility
This skill works with any AI coding agent that supports the skills.sh format, including Claude Code (Anthropic), Cursor, Windsurf, Cline, Aider, and other tools that read project-level context files. Skills are framework-agnostic at the transport level — the content inside determines which language or framework it applies to.
Chat with 100+ AI Models in one App.
Use Claude, ChatGPT, Gemini alongside with EU-Hosted Models like Deepseek, GLM-5, Kimi K2.5 and many more.