Created
August 21, 2012 20:34
-
-
Save vinitkumar/3419200 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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