好湿?好紧?好多水好爽自慰,久久久噜久噜久久综合,成人做爰A片免费看黄冈,机机对机机30分钟无遮挡

主頁 > 知識庫 > asp下的一個很簡單的驗證碼程序第1/3頁

asp下的一個很簡單的驗證碼程序第1/3頁

熱門標簽:宿州防封外呼系統(tǒng)平臺 高質量的電銷外呼系統(tǒng) 無營業(yè)執(zhí)照地圖標注教學 友邦互聯(lián)電銷機器人違法嗎 硅基電話機器人加盟 地圖標注還可以做嗎 外呼系統(tǒng)怎么話費 電銷機器人采購 滴滴地圖標注上車點
主程序共三個 

我的調用方式 script language="javascript" src="/verify/num.asp">/script> 
驗證方式 if trim(Loginnum)>trim(session("Loginnum")) then 
Response.Write Error("驗證碼錯誤!") 
Response.End 
end if 


num.asp 


'### To encrypt/decrypt include this code in your page 
'### strMyEncryptedString = EncryptString(strString) 
'### strMyDecryptedString = DeCryptString(strMyEncryptedString) 
'### You are free to use this code as long as credits remain in place 
'### also if you improve this code let me know. 

Private Function EncryptString(strString) 
'#################################################################### 
'### Crypt Function ? 2001 by Slavic Kozyuk grindkore@yahoo.com ### 
'### Arguments: strString --- String you wish to encrypt ### 
'### Output: Encrypted HEX string ### 
'#################################################################### 

Dim CharHexSet, intStringLen, strTemp, strRAW, I, intKey, intOffSet 
Randomize Timer 

intKey = Round((RND * 1000000) + 1000000) '##### Key Bitsize 
intOffSet = Round((RND * 1000000) + 1000000) '##### KeyOffSet Bitsize 

If IsNull(strString) = False Then 
strRAW = strString 
intStringLen = Len(strRAW) 

For i = 0 to intStringLen - 1 
strTemp = Left(strRAW, 1) 
strRAW = Right(strRAW, Len(strRAW) - 1) 
CharHexSet = CharHexSet  Hex(Asc(strTemp) * intKey) Hex(intKey) 
Next 

EncryptString = CharHexSet  "|"  Hex(intOffSet + intKey)  "|"  Hex(intOffSet) 
Else 
EncryptString = "" 
End If 
End Function 



Private Function DeCryptString(strCryptString) 
'#################################################################### 
'### Crypt Function ? 2001 by Slavic Kozyuk grindkore@yahoo.com ### 
'### Arguments: Encrypted HEX stringt ### 
'### Output: Decrypted ASCII string ### 
'#################################################################### 
'### Note this function uses HexConv() and get_hxno() functions ### 
'### so make sure they are not removed ### 
'#################################################################### 

Dim strRAW, arHexCharSet, I, intKey, intOffSet, strRawKey, strHexCrypData 


strRawKey = Right(strCryptString, Len(strCryptString) - InStr(strCryptString, "|")) 
intOffSet = Right(strRawKey, Len(strRawKey) - InStr(strRawKey,"|")) 
intKey = HexConv(Left(strRawKey, InStr(strRawKey, "|") - 1)) - HexConv(intOffSet) 
strHexCrypData = Left(strCryptString, Len(strCryptString) - (Len(strRawKey) + 1)) 


arHexCharSet = Split(strHexCrypData, Hex(intKey)) 

For i=0 to Ubound(arHexCharSet) 
strRAW = strRAW  Chr(HexConv(arHexCharSet(i))/intKey) 
Next 

DeCryptString = strRAW 
End Function 


Private Function HexConv(hexVar) 
Dim hxx, hxx_var, multiply 
IF hexVar > "" THEN 
hexVar = UCASE(hexVar) 
hexVar = StrReverse(hexVar) 
DIM hx() 
REDIM hx(LEN(hexVar)) 
hxx = 0 
hxx_var = 0 
FOR hxx = 1 TO LEN(hexVar) 
IF multiply = "" THEN multiply = 1 
hx(hxx) = mid(hexVar,hxx,1) 
hxx_var = (get_hxno(hx(hxx)) * multiply) + hxx_var 
multiply = (multiply * 16) 
NEXT 
hexVar = hxx_var 
HexConv = hexVar 
END IF 
End Function 

Private Function get_hxno(ghx) 
If ghx = "A" Then 
ghx = 10 
ElseIf ghx = "B" Then 
ghx = 11 
ElseIf ghx = "C" Then 
ghx = 12 
ElseIf ghx = "D" Then 
ghx = 13 
ElseIf ghx = "E" Then 
ghx = 14 
ElseIf ghx = "F" Then 
ghx = 15 
End If 
get_hxno = ghx 
End Function 

randomize 
num = int(7999*rnd+2000) '計數(shù)器的值 
num2 = EncryptString(num) 
session("Loginnum")=num 
%> 
document.write("img src='/verify/count.asp?sksid=%=num2%>'>") ' 這里是調用圖片的路徑 

count.asp 
123下一頁閱讀全文

標簽:江門 新余 雅安 宣城 錫林郭勒盟 儋州 廣元 七臺河

巨人網(wǎng)絡通訊聲明:本文標題《asp下的一個很簡單的驗證碼程序第1/3頁》,本文關鍵詞  asp,下,的,一個,很,簡單,;如發(fā)現(xiàn)本文內容存在版權問題,煩請?zhí)峁┫嚓P信息告之我們,我們將及時溝通與處理。本站內容系統(tǒng)采集于網(wǎng)絡,涉及言論、版權與本站無關。
  • 相關文章
  • 下面列出與本文章《asp下的一個很簡單的驗證碼程序第1/3頁》相關的同類信息!
  • 本頁收集關于asp下的一個很簡單的驗證碼程序第1/3頁的相關信息資訊供網(wǎng)民參考!
  • 推薦文章