From 25128414d352a209c3e00969bc0bbde601571756 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sun, 28 Jan 2018 20:22:52 +0800 Subject: Add cli/gpg-aes256.sh --- cli/gpg-aes256.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 cli/gpg-aes256.sh (limited to 'cli') diff --git a/cli/gpg-aes256.sh b/cli/gpg-aes256.sh new file mode 100755 index 0000000..9ce610b --- /dev/null +++ b/cli/gpg-aes256.sh @@ -0,0 +1,19 @@ +#!/bin/sh +# +# Encrypt the given file using symmetric AES256 algorithm. +# +# Aaron LI +# 2015-01-24 +# + +case "$1" in + ""|-h|--help) + echo "usage: ${0##*/} " + exit 1 + ;; +esac + +infile="$1" +outfile="${infile}.gpg" +gpg2 --symmetric --cipher-algo aes256 -o "${outfile}" "${infile}" +chmod 0600 "${outfile}" -- cgit v1.2.2