Loading
Scriptbox
 VBScript Links 
 About VBscript 
 JavaScript Links 
 About JavaScript 
 Powershell Links 
 PSCRIPT the Script Launcher 
 PowerShell Shortcut Keys 
 About Powershell 
     VBScript
    JavaScript
    Powershell
Disclaimer
Contact
Latest 10 Scripts
Script search
  :: { Category } :: 0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ
         

Search Options:  ROT13  

 Content of ROT13.vbs
MD5 Hash: D511E9EBE61F22AE6B8F5656E7FF1D91

Dim Test : Test = "Hello World"

'Encode with ROT13
Test = ROT13(Test)
msgbox Test

'Decode with ROT13
Test = ROT13(Test)
msgbox Test


' --------------------------
Public Function ROT13(sText)

Const cAlphabet = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ"
Dim sROT13, lPos

For lPos = 1 To Len(sText)
iChar = Instr(cAlphabet, Mid(sText, lPos, 1))
If iChar = 0 Then
sROT13 = sROT13 & Mid(sText, lPos, 1)
Else
sROT13 = sROT13 & Mid(cAlphabet, iChar + 13, 1)
End If
Next

ROT13 = sROT13

End Function

   © 2008 - 2013 Boris Toll      :: Scripts available: 6.481 ::      :: scriptbox.toll.at ::      :: powered by www.toll.at ::
  Google Entries:n/a
  Yahoo Backlinks:n/a
  Live Backlinks:n/a
  del.icio.us Bookmarks:n/a
  Technorati Links:n/a