OpenSSL
OpenSSL is a robust, commercial-grade, and full-featured toolkit for the Transport Layer Security (TLS) and Secure Sockets Layer (SSL) protocols.
#!/bin/bash
echo "Welcome, let's encrypt a file"
echo "Enter the exact file name with extension (if any)"
read file;
echo "Enter file name for output"
read ofile
openssl des3 -salt -in $file -out $ofile
echo "Your file has been encrypted "
rm $file
#!/bin/bash
echo "Welcome, let's decrypt a file"
echo "Enter the exact file name with extension (if any)"
read file;
echo "Enter the exact file name for output"
read ofile;
openssl des3 -d -salt -in $file -out $ofile
echo "Your file has been decrypted and written to" $ofile
rm $file