diff options
Diffstat (limited to 'dotfiles/common/.local/bin/encryptfile')
| -rwxr-xr-x | dotfiles/common/.local/bin/encryptfile | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/dotfiles/common/.local/bin/encryptfile b/dotfiles/common/.local/bin/encryptfile deleted file mode 100755 index bfe5aee..0000000 --- a/dotfiles/common/.local/bin/encryptfile +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash -# Encrypt a file with symmetric GPG (password-based) -# Usage: encryptfile <file> - -if [ -z "$1" ]; then - echo "Usage: encryptfile <file>" - exit 1 -fi - -if [ ! -f "$1" ]; then - echo "File not found: $1" - exit 1 -fi - -gpg --symmetric --cipher-algo AES256 --armor -o "${1}.gpg" "$1" && \ - echo "Encrypted to ${1}.gpg" && \ - rm -i "$1" |
