Signature (Visual Basic / VBA)
Public Function ROT13( _
ByVal vValue As Variant _
) As Variant
Code Example
ROT13("Vulgar Words") = "Ihytne Jbeqf"
ROT13("This is a test.") = "Guvf vf n grfg."
Parameters
| Parameter | Description |
|---|---|
| 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. |
Notes & Version History
| Summary | The ROT13 translation is used to shield unintended viewers from vulgar and offensive public conversations within the Internet newsgroups. 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. |