<-- Previous || Up || Next -->

ROT13 Function
Codes Ciphers Class

Public Function ROT13( _
    ByVal vValue As Variant _
    ) As Variant

"Rotate Thirteen"
Translate a string according to the Internet ROT13 convention.

Summary: The ROT13 translation is used to shield unintended viewers from vulgar and offensive public conversations within the Internet newsgroups.
Examples:
    ROT13("Vulgar Words") = "Ihytne Jbeqf"
    ROT13("This is a test.") = "Guvf vf n grfg."
See also:
    StringReplacements Class
       TranslateString Function
The algorithm is a straight substitution cipher in which each character has the same translation every place that it appears within the message.
Note: This function is the inverse of itself, so it can be used to both encode and decode strings.
vValue: The string which is to be encoded or decoded using the Internet ROT13 convention. Function returns Null if vValue is Null or cannot be fixed up to a String.

Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.