Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 14 lines (11 sloc) 203 Bytes
#!/bin/bash
echo -n Password:
read -s PASSWD
export PASSWD
echo
for var in "$@"
do
NAME="$var.enc"
echo "Encrypt $var => $NAME"
openssl aes-256-cbc -in "$var" -out "$NAME" -pass env:PASSWD
done