Transact SQL Other Articles Software Reviews
ROT13 Encoding with ASP
ROT13 is a commonly used method for encoding a text string so that it cannot be easily read. This encoding process DOES NOT encrypt the text (so don't even consider using it to encode passwords or other sensitive information). Nonetheless, it is a useful method to use in certain situations. If you want to use sophisticated encryption within ASP, then take a look at this article.
ROT13 uses a simple encoding process; the alphabet is rotated 13 characters, so that "a" becomes "n", "z" becomes "m", "N" becomes "Y" and so on... ROT13 originated on USENET, so if you have added USENET support to your ASP powered website then it is a particularly useful feature to build into the site.
Another possible use would be to encode Query Strings or non-sensitive
cookie data. Although it must be stressed that ROT13 does not encrypt text, it can be
effective in keeping the average user from figuring out how your site works. So if you
used ROT13 in your site, instead of something like...
If you want to test ROT13 encoding, then enter some text into the box below:
The VBScript function for encoding and decoding text using ROT13 is shown below:
function - a function to encode and decode text strings using the popular ROT13 method
The function can then be called from an ASP page by using something like:
found to work in Internet Explorer 5 and Netscape 4.5.