Encrypt/Decrypt files and folders with OpenSSL
Generate the private and public key
mkdir ~/.pyenc && cd ~/.pyenc
openssl genrsa -out private.pem 3072
openssl rsa -pubout -in private.pem -out public.pem -outform PEMClone or download repository, install script
git clone https://github.com/morontt/pyenc.git
cd pyenc
cp pyenc.py ~/bin/pyenc
chmod a+x ~/bin/pyencEncrypt file or folder
pyenc e testfileDecrypt file or folder
pyenc d testfile