set fso = CreateObject("Scripting.FileSystemObject")
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''
If key < -95 or key > 95 Then '
msgbox "参数非法" '
Wscript.quit '
End If '
'
If fso.FileExists(scFileName) = False Then '
msgbox "文件" & scFileName & "不存在" '
Wscript.quit '
End If '
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Set scText = fso.OpenTextFile(scFileName,1)
Set dtText = fso.CreateTextFile(dtFileName)
str = scText.readall
'''''''''''''''''''''''''''''''第一轮解密''''''''13'''' '
jiemi = Replace(str, "氍", """") '
For I = 1 To Len(jiemi) '
If Mid(jiemi, I, 1) <> "冱" Then '
step1 = Mid(jiemi, I, 1) + step1 '
Else '
'
step1 = vbCrLf + step1 '
End If '
Next '
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''
''''''''''''''''''''''''''''''''第二轮解密''''''''''''''移位''''''''''''''
For i = 1 To Len(step1) '
'
If ascw(mid(step1,i,1)) < 32 Or ascw(mid(step1,i,1)) > 126 Then '
step2 = step2 & chrw(ascw(mid(step1,i,1))) '
Else '
pk = asc(mid(step1,i,1)) - key '
If pk > 126 Then '
pk = pk - 95 '
ElseIf pk < 32 Then '
pk = pk + 95 '
End If '
step2 = step2 & chr(pk) '
End If '
'
Next '
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''