openssl file encryption | decryption

Assuming your user and pass are stored in user.txt and pass.txt
Encrypt with:
$ openssl aes-256-cbc -salt -in user.txt -out user.txt.enc -pass file:pass.txt
Decrypt with:
$ openssl aes-256-cbc -d -salt -in user.txt.enc -out user.txt.dec -pass file:pass.txt
In order to have more secure encryption you can try to use you own complex salt with -S "your complex string". However this might be sufficient for most uses.

Comments

Popular posts from this blog

HAproxy logging

tomcat catalina coyote jasper cluster

NFS mount add in fstab _netdev instead of default | firewall-cmd --list-all