CbfgFpevcg

One of my favorite languages is PostScript. It’s not so much the language itself — it’s simple and general but it can be a bit of a hassle to use — but the idea to use a general programming language as a document format. I’ve been playing around a bit lately and have written two small PostScript programs that can transform PS documents: munch-rot13.ps and munch-nl.ps. The one script ROT13s the document (example) and the other one simply swaps the letter N and the letter L (example). The N/L thing is sort of a tradition at daimi.

How do you “run” the programs? You simply concatenate the program with the document you want to transform. To apply ROT13 to document.ps you simply write

$ cat munch-rot13.ps document.ps > document-rot13.ps

You can apply the transformations as many times as you want so given a document encoded with munch-rot13.ps you can decode it by just applying munch-rot13.ps again. And, incidentally, if want to decode a document but don’t have munch-rot13.ps, don’t worry: since the document was encoded by appending it to the script, the encoded document actually carries around the script.

You can also mix the transformations: apply ROT13, then N/L and then ROT13 again. That causes A and Y to be switched in the document.

Pointless? Maybe, but I thought it was an interesting challenge. And, as Mayer Goldberg demonstrates, you can actually write useful programs in PostScript. Maybe I’ll try that some day. I’m not completely done with pointlessness yet, though: I’m considering writing a version that Enigmas the document.

5 Responses to CbfgFpevcg

  1. I saw your website and i was wondering if this is a “cbfgFpevcg” code.. if so can you tell me what is says? or teach me how to figure it out?. thanks

  2. here is the script.

    Cbfgfpevcg: Gurer ner srj vs nal uvqqra pyhrf pbagnvarq va guvf zrffntr juvpu erirny gur vqragvgl bs gur ragregnvazrag, ohg svsgl ohpxf gb gur svefg jub qrpbqrf guvf zrffntr (abgH2)…

  3. I would have thought that it was pretty obvious from the post, but “CbfgFpevcg” is the word “PostScript” encrypted using ROT13. There’s a encoder/decoder here.

    By the way, if you get the fifty bucks for decoding the message I believe you owe me a favor.

  4. hahah thanks..but someone else figured it out before i could submit the translation…thanks for the help

  5. so who is the “big act” going to be on monday?

Leave a Reply

Your email address will not be published. Required fields are marked *


*