diff options
-rwxr-xr-x | decode.sh | 8 | ||||
-rwxr-xr-x | encode.sh | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/decode.sh b/decode.sh new file mode 100755 index 0000000..34c45a1 --- /dev/null +++ b/decode.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +if [ ! "$2" ] ; then + echo $0: usage $0 infile outfile + exit 1 +fi + +openssl enc -d -aes-256-cbc -in "$1" -out "$2" diff --git a/encode.sh b/encode.sh new file mode 100755 index 0000000..900e5ae --- /dev/null +++ b/encode.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +if [ ! "$2" ] ; then + echo $0: usage $0 infile outfile + exit 1 +fi + +openssl enc -aes-256-cbc -in "$1" -out "$2" |