encrypted single-user key-value store
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

init 308B

123456789101112131415
  1. #!/bin/bash
  2. set -euo pipefail
  3. function main {
  4. if [ -f vault ]; then
  5. echo 'error: vault exists'
  6. exit 1
  7. fi
  8. echo 'Please set a password for the vault.'
  9. echo '{}' | gpg --armor --symmetric --pinentry-mode loopback > vault
  10. echo "New vault created at $PWD/vault"
  11. }
  12. main "$@"