How do I make a script that encodes and decodes text using the rot13 encryption. Assume ASCII

Viewed 49

I have used the code alias rot13="tr 'A-za-z' 'Z-NA-Mz-na-m' " but my checker marks the code as incorrect.

2 Answers

Just simply use the alias: e.g.: echo 'fooman@example.com' | rot13

Try this tr 'A-Za-z' 'N-ZA-Mn-za-m', if you are still stuck.

Related