<%
'这里是例子
Dim Str
Str = "123456" '这里是要加密的字符串
Response.Write "加密前:" & Str
Response.Write "<BR>"
Str = SF_JiaM(Str)
Response.Write "加密后:" & Str
Response.Write "<BR>"
Response.Write "解密后:" & SF_JieM(Str)
'这里是加解密函数
Function SF_JiaM(Str)
Dim JM_Str,M
JM_Str = ""
Str = StrReverse(Str)
For M = 1 To Len(Str)
JM_Str = JM_Str & "b" & Asc(Mid(Str,M,1))
Next
SF_JiaM = Right(JM_Str,Len(JM_Str)-1)
End Function
Function SF_JieM(Str)
Dim JM_Str,I
JM_Str = ""
Str = Split(Str,"b")
For I = 0 To UBound(Str)
JM_Str = JM_Str & Chr(Str(I))
Next
SF_JieM = StrReverse(JM_Str)
End Function
%>