Encrypt using better cipher algorithm

This commit is contained in:
斟酌 鵬兄 2015-03-10 12:55:54 +08:00
parent daea3fdc0d
commit dec800c3d0

View File

@ -67,11 +67,11 @@ export BASH_SDIR=/tmp/$BASHL_UUID
function __cryptd {
echo "<PASSWD>" | gpg -q --passphrase-fd 0 -o "$2" -d "$1"
echo "<PASSWD>" | gpg --batch -q --cipher-algo AES256 --passphrase-fd 0 -o "$2" -d "$1"
}
function __crypte {
echo "<PASSWD>" | gpg -q --passphrase-fd 0 -o "$1.enc" -c "$1"
echo "<PASSWD>" | gpg --batch -q --cipher-algo AES256 --passphrase-fd 0 -o "$1.enc" -c "$1"
mv "$1.enc" "$1"
}
__CFILE=""