setup/ssl/encrypt

9 lines
141 B
Bash
Executable File

#!/bin/sh
if [ $# -lt 2 ]; then
echo "missing arguments {in_file} {out_encrypted}" && exit;
fi;
openssl enc -aes-256-cbc -in $1 -out $2;