IMPORTANT: Updated version on new link: http://jamesgalaxy.com/java-tutorial-easy-simple-rot13-encryption-and-decryption/
ROT13 is the simplest and easiest way to encrypt and decrypt (cipher) a string of text! On this java application I have created a very simple java app to encrypt/decrypt a string of text using ROT13. ROT13 is basically another substitution cipher technique (part of the Caesar cipher) that replaces a letter with the thirteenth letter after it (ROT13 = “rotate by 13 places”).
Just download the java file and then run it on your computer. I have commented the code and so you can just view my comments to understand how the code works. It is so easy that beginner programmers should be able to understand it.
1. Run the .java file and follow the instruction on the console
2. Type the string to encrypt/decrypt on the console
3. Press enter to process the text
4. View the results!
You can download the source code on my Github page https://github.com/jamesadhitthana/SimpleROT13/blob/master/Rot13.java or you can see it below.
- James Adhitthana– jamesadhitthana