Skip to content

Instantly share code, notes, and snippets.

@vinitkumar
Created August 21, 2012 20:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vinitkumar/3419200 to your computer and use it in GitHub Desktop.
Save vinitkumar/3419200 to your computer and use it in GitHub Desktop.
Simple shell script to break ceaser cypher:
Say we have a alphanumeric cyphered using Rot13 :
Eg:
5Gr8L4qetPEsPk8htqjhRK8XSP6x2RHh
In order to break this, all we need is a simple tr construct
$ echo 5Gr8L4qetPEsPk8htqjhRK8XSP6x2RHh | tr 'N-Z' 'A-M' | tr 'A-M' 'N-Z' | tr 'n-z' 'a-m' | tr 'a-m' 'n-z'
This will give u the decyphered stuff.
5Tr8Y4qrtPRsPx8utqwuRX8XSP6x2RUu
~ Happy hacking!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment