|SAFE(1)||General Commands Manual||SAFE(1)|
safe — digital
safe for your secrets
safe stores secrets (files) encrypted on
your disk, and lets you retrieve them, given that you have the right
SAFE_SOCKmust be set and point to the UNIX-domain socket bound by a running agent (see AGENT).
When the agent is started,
retrieve the key from it rather than prompting you for a password.
safe will try to read the key from the agent
SAFE_SOCK variable is set in the
When the agent is first started, you can push the key to it using
When you add your first secret to the safe, a master entry will be created automatically. This entry stores your master password, and is used to check that you typed the master password correctly on the next calls.
Do not delete this entry as it could lead to a corrupted safe.
Store a secret in your safe
$ safe -a secret/file < kitten.gif
List all secrets in $SAFE_DIR (choose your weapon)
$ tree --noreport $SAFE_DIR $ find $SAFE_DIR -type f $ ls -R $SAFE_DIR $ tar -C $SAFE_DIR -v -f /dev/null -c . | cut -d / -f 2-
Retrieve a secret from your safe
$ safe secret/file > kitten.gif password:
Willy Goiffon <email@example.com>