To encrypt a file: openssl rsa -in $FILE -aes256 -out $CRYPTOFILE To decrypt a file: openssl rsa -in $CRYPTOFILE -out $FILE