' Converts a string from ROT13
Const Alpha_Upper = "abcdefghijklm" ' First 13 letters
Const Alpha_Lower = "nopqrstuvwxyz" ' Second 13 letters
Dim aAlpha, aStringDim iDim sROT13, sFullROT13
aAlpha = Split(Alpha, ",")
sString = Wscript.Arguments(0)
For i = 1 to Len(sString)
  iPos = InStr(Alpha_Upper, LCase(Mid(sString, i, 1)))
  If iPos > 0 Then ' Found in upper so return corresponding lower character
    sROT13 = Mid(Alpha_Lower, iPos, 1)
  Else
    iPos = InStr(Alpha_Lower, LCase(Mid(sString, i, 1)))
    If iPos > 0 Then
      sROT13 = Mid(Alpha_Upper, iPos, 1)
    Else
      sROT13 = Mid(sString, i, 1) ' Not an alphabetic character, so just return the supplied character
    End If
  End If
  sFullRot13 = sFullRot13 & sROT13
Next
Wscript.Echo sFullROT13
Blog Index
-
▼
2008
(40)
-
▼
May
(10)
- Powershell WMI one-liners
- Installing device drivers without the device being...
- Effective permissions may be reported incorrectly
- MDT 2008 Storage Drivers - 0x0000007B error
- NVIDIA Screen resolution resets
- Mandatory ZTI advertisement does not run
- You receive message "Please wait while the domain ...
- Decrypt / Encrypt string in ROT-13
- Understanding the Most Frequently Used (MFU) regis...
- Windows XP reboots during setup
-
▼
May
(10)
Wednesday, May 7, 2008
Decrypt / Encrypt string in ROT-13
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment