Extension:ROT13

The ROT13 extension adds parser functions that display content as ROT13- or otherwise substitution cipher-encrypted, except for users with a specified right. It is probably the most trivially-bypassed security measure known to man. Anyone who clicks "Edit" or uses will be able to view the plaintext. The only purpose this extension serves is to (hopefully) prevent content from being easily found via keyword-reliant search engines or read by users who are so wiki-naive as to not know about the edit screen or the API. Sadly, this is probably about 95 percent of the Internet-using population.

Parameters
Set $wgROT13Right to, say, 'encrypt' if you want the __ROT13__ to render the page as ROT13 for anyone without the encrypt right. It defaults to 'encrypt' anyway. For whatever reason, it doesn't seem to want to work if you put the __ROT13__ right at the beginning of the page, so try elsewhere.
 * $wgROT13Right

The length of the string that should be used for the cipher. Defaults to 52 (26 letters/alphabet multiplied by 2 alphabets/string equals 52 letters/string). Must be an even number.
 * $wgROT13Strlen

User rights
The user right "encrypt" is by default set to the "sysop" user group. In case you would like to set it for a new user group:

ROT13
Suppose you want only users with the "encrypt" right (assigned to sysops by default) to be able to read your document. Use the following to translate it into ROT13:

The result, for those users who don't have the "encrypt" right, will be: ZrqvnJvxv vf njrfbzr!

You can also use __ROT13__ to render the contents of the whole page as ROT13 to those who lack the right specified in $wgROT13Right ('encrypt' by default).

You can also use Special:Encrypt.

Other substitution ciphers
Suppose you want only users with the  right to be able to read your document. Use the following to translate it into QwertyCode (a substitution cipher featured in the Micro Adventure novel Million Dollar Gamble):

The result, for those users who don't have the  right, will be: DtroqVoao ol qvtlgdt!

External link

 * hexmode (8 May 2013), A quick hack to hide a page from anyone who can’t edit it in MediaWiki