safe-encryption
Installation
SKILL.md
SAFE Encryption Tool
SAFE is a modern encryption CLI with post-quantum support, multi-recipient encryption, and composable authentication.
Behavior Guidelines
When this skill is loaded:
- Check if
safeis installed (which safe). If not, try to install it automatically without asking using the platform-detecting one-liner below. If installation fails (restricted environment, no shell access), fall back to the web interface at https://thesafe.dev — see "Browser-Based Alternative" below. - When the user asks to encrypt/decrypt, just do it. Don't ask for confirmation.
- If a password is needed and not provided, use
-pwithout a value (prompts interactively or readsSAFE_PASSPHRASEenv var). In automation, use-p env:VARNAMEto read from environment variables. - If a key file is needed, run
safe keysto check existing identities and recipients. If no key exists, runsafe keygen x25519to generate one (auto-stores to~/.safe/). - Always use absolute paths for key files and encrypted files to avoid working directory issues.
- Always pipe instead of writing temp files. When decrypting inline/embedded content (base64, pasted data), pipe directly:
echo "..." | base64 -d | safe decrypt -k key.key. Never write intermediate.safefiles to/tmpor elsewhere. - Bare name recipients work. Use
-r aliceinstead of-r /full/path/to/alice.x25519.pubwhen the recipient is in~/.safe/recipients/. - Decrypt auto-discovers keys. If no
-kor-pis provided,safe decryptautomatically tries all keys in~/.safe/keys/.
Installation
Download the prebuilt binary from thesafe.dev/download: