Created
September 17, 2020 20:32
-
-
Save JaekelEDV/403d121e2a71156238960660c8ffc78b to your computer and use it in GitHub Desktop.
ROT13
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
#https://en.wikipedia.org/wiki/ROT13 | |
echo "Hail, Caesar!" | tr 'a-zA-Z' 'n-za-mN-ZA-M' | |
#Unvy, Pnrfne! | |
echo "Unvy, Pnrfne!" | tr 'a-zA-Z' 'n-za-mN-ZA-M' | |
#Hail, Caesar! | |
#To better understand this: | |
#tr accepts | |
# set of characters to convert from | |
# corresponding set of characters to convert to | |
echo "abc" | tr 'a-zA-Z' 'n-za-m N-ZA-M' | |
#nop | |
echo "mno" | tr 'a-zA-Z' 'n-za-m N-ZA-M' | |
#zab | |
echo "lowercase letters" | tr 'a-z' 'A-Z' | |
#LOWERCASE LETTERS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment