blob: 9ce610b39caa7847b10a78e245a47768de50c5df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/sh
#
# Encrypt the given file using symmetric AES256 algorithm.
#
# Aaron LI
# 2015-01-24
#
case "$1" in
""|-h|--help)
echo "usage: ${0##*/} <infile>"
exit 1
;;
esac
infile="$1"
outfile="${infile}.gpg"
gpg2 --symmetric --cipher-algo aes256 -o "${outfile}" "${infile}"
chmod 0600 "${outfile}"
|