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:

Regulatory Compliance and SOC 2: Which Industries and Regulatory Standards Require SOC 2?

Regulatory Compliance and SOC 2: Which Industries and Regulatory Standards Require SOC 2? SOC 2 compliance has become a critical benchmark f...