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
Post a Comment