For Hex editor
sudo apt-get install bless
Create a file using vi msg.txt
and save the file after writing some contents.
Encrypt the file using
openssl aes-256-cbc -a -salt -in msg.txt -out secret.txt
It shall ask for password and confirm password. After that a secret.txt file shall be created.
To view the contents of the file:
cat secret.txt
You will see an encrypted text
To decrypt the text
openssl aes-256-cbc -d -a -salt -in secret2.txt -out new.txt
.
Try again using different encrytion techniques by replacing aes-256-cbc
.
To find the encrytion techniques openssl list -cipher-commands