Decode Base64 and ROT13 in Linux Terminal

Below are the commands , to Decode and Encoded text from Base64 and Rot13.
It is a handy and easy technique required in CTFs. Alternatively we can also google and use any website offering decoding of text from these two types. But in terminal we can decode it quickly and save our precious time.

From Base64 we use the function base64 and option -d (for decode).

$ base64 -d data.txt


From ROT13 (also called as rotated 13 times) we use the function tr (for translation). the text must be echo first and piped into tr with two strings as arguments.

$ echo " GUR CNFFJBEQ VF 5GR8L4QETPESPK8HTQJHRK8XSP6X2RHH" |tr '[A-Za-z]' '[N-ZA-Mn-za-m]'




-574r570rm

No comments:

Scheduled Skype Message in Python

To send a message on Skype at a scheduled time, you can use the schedule library in Python along with the skype4py library to interact wit...