We have some fun in Networked Narratives with coded messages using rot13. Just look at the Daily Digital Alchemy 243:

It’s just a simple cipher that works by changing each letter in a word to the one that is 13 letters after (wrapping around after Z). It’s nifty, because being half of the number of letters in the English alphabet, decoding can use the same formula (just add another 13 to get back to where you started).
This was an early thing that happened when Mia Zamora and started planning NetNarr in 2016. We were excited that as a twitter hashtag, no one was using #netnarr. But then I shared rot13 where we found that #netnarr became #arganee… that sounded like a mystery world (hence the domain arganee.world (I wonder if anyone ever ventures there, it’s weird).
I always did the encoding/decoding with a lot of roundtrip copy paste at the rot13.com site. As I saw two of our students going back and forth, I wondered if there was a Simpler Way.
And boom- I found a seven year old bit of Javascript usable in a browser bookmarklet. I then tried it out. It worked great it tweetdeck- I could select any text, clicked the bookmarklet, and it would apply the rot13 transformation.
Because of that magic of the same function coding text that decodes it, you can use it to convert any “normal” text to rot13 or any converted text back to “normal”. And if you use it without any selection, you get a dialog box to encode any message:


How can you do this? Well browser bookmarklet tools no longer work in Firefox, so do this in Chrome or Safari. Just click and hold this link, then draaaaaag it to your bookmarks bar in your browser.
Or copy the script text:
1 |
javascript:function%20convert(inText){var%20outText='',t;for(i=0;i<inText.length;i++){t=inText.charCodeAt(i);if((t>64&&t<78)||(t>96&&t<110))t%20+=%2013;else%20if((t>77&&t<91)||(t>109&&t<123))t%20-=%2013;outText%20+=%20String.fromCharCode(t);}return%20outText;}if(window.getSelection){var%20sel=window.getSelection().getRangeAt(0);}else{var%20sel=''}if(sel==''){var%20act=document.activeElement;if(act.type=="textarea"){var%20start=act.selectionStart,end=act.selectionEnd;if(start!=end){var%20prefix=act.value.substring(0,start);var%20middle=convert(act.value.substring(start,end));var%20suffix=act.value.substring(end);act.value=prefix;act.value%20+=%20middle;void(act.value%20+=%20suffix);}}else{void(inText=prompt('Phrase...',''));if(inText)alert(convert(inText));}}else{out=convert(sel.toString());sel.deleteContents();var%20span=document.createElement("span");span.innerHTML=out;sel.insertNode(span);} |
Go to your browser’s Bookmarks Manager, create a new bookmark in the place that puts them on your bookmarks bar, add a new bookmark, and past that chunk in for a URL (you might have to poke around for instructions, here is one set that might help).
It sort of works on a mobile device, I used this set of instructions to add it to my iPhone Safari app.
I can take a web view, select the first paragraph:


It was not good at tweets, since in the twitter app, you cannot select partial text in a tweet.
Nalubj, V whfg jnagrq gb funer fbzr qvtvgny nypurzvpny gevpxf gung zvtug vzcerff lbhe sevraqf naq jbeel lbhe sbrf.
Got it?
Featured Image: Magic Spell combined with Eight Trigram – Section 6.1 Round shape – John Ferguson 01.jpg Wikimedia Commons image by John Ferguson shared under a Creative Commons CC BY-SA license (which means I do too). Inverted colors of image and bumped contrast for better design with blog header.