Skip to content

Instantly share code, notes, and snippets.

@Leovaldez42
Created January 25, 2021 07:52
Show Gist options
  • Save Leovaldez42/d3db76df87102d62a49aa87c74fb237e to your computer and use it in GitHub Desktop.
Save Leovaldez42/d3db76df87102d62a49aa87c74fb237e to your computer and use it in GitHub Desktop.

Steps for Crytography

For Hex editor sudo apt-get install bless

Task 1 Encryption using different ciphers and modes

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment