##### Copyright reproduced leave thank you ##### ##### of parts of the program from the network: Yangzi ##### Email: yangzinet@hotmail.com ##### QQ: 21112856 ##### Website: www.tingfo.net 4 pages: form.asp; chk.asp; num.asp; count.asp Get an additional number.
encryption! Into a decrypted image using the session is determined to XBM form.asp <% '### To encrypt / decrypt include this code in your page' ### strMyEncryptedString = EncryptString (strString) '### strMyDecryptedString = DeCryptString (strMyEncryptedString)' # #################################################################################################################################################################################################################################################################################################### ######################################################################################################################################################################################################################################################################################################## ##### '### Crypt Function (c) 2001 by Slavic Kozyuk grindkore@yahoo.com ###' ### arguments: strstring <- string you wish to encrypt ### '### Output : Encrypted Hex String ### '#################################################################################################################################################################################################################################################### ################################################################################################################################## ) 1000000) '##### Key Bitsize INTOFFSET = ROUND ((RND * 1000000) 1000000)' #### kyoffset bitsize if isnull (strstring) = false dam = 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 ifnd function private function decryptstring (strcryptstring) '############## ######################################################################################################################################################################################################################################################################################################## #### '### Crypt Function (c) 2001 by Slavic Kozyuk Grindkore@yahoo.com ###'
### Arguments: Encrypted Hex Stringt ### '### Output: Decrypted ASCII STRING ###' ########################################################################################################################################################################################################################################################### ######################################################## HEXCONV () and get_hxno () Functions ### '### so make Sure the 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 = strRAWEnd 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 lenvar 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 IFEnd 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 = ghxend function %> <% randomizenum = int (7999 * RND 2000) 'counter Num2 = EncryptString (NUM) Session ("PWDT") = NUM%>