亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? functions_hash1way.asp

?? 快速、可設定管理權限等級的論壇程序
?? ASP
?? 第 1 頁 / 共 2 頁
字號:
<%
Function getSalt(intLen)
' Function takes a given length x and generates a random hex value of x digits.
' Salt can be used to help protect passwords.  When a password is first stored in a
' database generate a salt value also.  Concatenate the salt value with the password, 
' and then encrypt it using the HashEncode function below.  Store both the salt value,
' and the encrypted value in the database.  When a password needs to be verified, take 
' the password concatenate the salt from the database.  Encode it using the HashEncode 
' function below.  If the result matches the the encrypted password stored in the
' database, then it is a match.  If not then the password is invalid.
'
'
' Note: Passwords become case sensitive when using this encryption.
' For more information on Password HASH Encoding, and SALT visit: http://local.15seconds.com/issue/000217.htm
'
' Call this function if you wish to generate a random hex value of any given length
'
' Written By: Mark G. Jager
' Written Date: 8/10/2000
'
' Free to distribute as long as code is not modified, and header is kept intact

	Dim strSalt
	Dim intIndex, intRand

	If Not IsNumeric(intLen) Then
		getSalt = "00000000"
		exit function
	ElseIf CInt(intLen) <> CDbl(intLen) Or CInt(intLen) < 1 Then
		getSalt = "00000000"
		exit function
	End If

	Randomize

	For intIndex = 1 to CInt(intLen)
		intRand = CInt(Rnd * 1000) Mod 16
		strSalt = strSalt & getDecHex(intRand)
	Next
	
	getSalt = strSalt

End Function


Function HashEncode(strSecret)
' Function takes an ASCII string less than 2^61 characters long and 
' one way hash encrypts it using 160 bit encryption into a 40 digit hex value.
' The encoded hex value cannot be decoded to the original string value.
'
' This is the only function that you need to call for encryption.
'
' Written By: Mark G. Jager
' Written Date: 8/10/2000
'
' Free to distribute as long as code is not modified, and header is kept intact
'
' The author makes no warranties as to the validity, and/or authenticity of this code.
' You may use any code found herein at your own risk.
' This code was written to follow as closely as possible the standards found in
' Federal Information Processing Standards Publication (FIPS PUB 180-1)
' http://csrc.nist.gov/fips/fip180-1.txt -- Secure Hash Standard SHA-1
'
' This code is for private use only, and the security and/or encryption of the resulting
' hexadecimal value is not warrented or gaurenteed in any way.
'
    Dim strEncode, strH(4)
    Dim intPos
    
    
    If len(strSecret) = 0 or len(strSecret) >= 2^61 then
		HashEncode = "0000000000000000000000000000000000000000"
		exit function
    end if
    
    
    'Initial Hex words are used for encoding Digest.  
    'These can be any valid 8-digit hex value (0 to F)
    strH(0) = "FB0C14C2"
    strH(1) = "9F00AB2E"
    strH(2) = "991FFA67"
    strH(3) = "76FA2C3F"
    strH(4) = "ADE426FA"
    
    For intPos = 1 to len(strSecret) step 56
		
		strEncode = Mid(strSecret, intPos, 56) 'get 56 character chunks
		strEncode = WordToBinary(strEncode) 'convert to binary
		strEncode = PadBinary(strEncode) 'make it 512 bites
		strEncode = BlockToHex(strEncode) 'convert to hex value
		
		'Encode the hex value using the previous runs digest
		'If it is the first run then use the initial values above
		strEncode = DigestHex(strEncode, strH(0), strH(1), strH(2), strH(3), strH(4))

		'Combine the old digest with the new digest
		strH(0) = HexAdd(left(strEncode, 8), strH(0))
		strH(1) = HexAdd(mid(strEncode, 9, 8), strH(1))
		strH(2) = HexAdd(mid(strEncode, 17, 8), strH(2))
		strH(3) = HexAdd(mid(strEncode, 25, 8), strH(3))
		strH(4) = HexAdd(right(strEncode, 8), strH(4))
		
    Next
    
    'This is the final Hex Digest
    HashEncode = strH(0) & strH(1) & strH(2) & strH(3) & strH(4)
    
End Function



Function HexToBinary(btHex)

' Function Converts a single hex value into it's binary equivalent
'
' Written By: Mark Jager
' Written Date: 8/10/2000
'
' Free to distribute as long as code is not modified, and header is kept intact
'

    Select Case btHex
    Case "0"
        HexToBinary = "0000"
    Case "1"
        HexToBinary = "0001"
    Case "2"
        HexToBinary = "0010"
    Case "3"
        HexToBinary = "0011"
    Case "4"
        HexToBinary = "0100"
    Case "5"
        HexToBinary = "0101"
    Case "6"
        HexToBinary = "0110"
    Case "7"
        HexToBinary = "0111"
    Case "8"
        HexToBinary = "1000"
    Case "9"
        HexToBinary = "1001"
    Case "A"
        HexToBinary = "1010"
    Case "B"
        HexToBinary = "1011"
    Case "C"
        HexToBinary = "1100"
    Case "D"
        HexToBinary = "1101"
    Case "E"
        HexToBinary = "1110"
    Case "F"
        HexToBinary = "1111"
    Case Else
        HexToBinary = "2222"
    End Select
End Function

Function BinaryToHex(strBinary)

' Function Converts a 4 bit binary value into it's hex equivalent
'
' Written By: Mark Jager
' Written Date: 8/10/2000
'
' Free to distribute as long as code is not modified, and header is kept intact
'
    Select Case strBinary
    Case "0000"
        BinaryToHex = "0"
    Case "0001"
        BinaryToHex = "1"
    Case "0010"
        BinaryToHex = "2"
    Case "0011"
        BinaryToHex = "3"
    Case "0100"
        BinaryToHex = "4"
    Case "0101"
        BinaryToHex = "5"
    Case "0110"
        BinaryToHex = "6"
    Case "0111"
        BinaryToHex = "7"
    Case "1000"
        BinaryToHex = "8"
    Case "1001"
        BinaryToHex = "9"
    Case "1010"
        BinaryToHex = "A"
    Case "1011"
        BinaryToHex = "B"
    Case "1100"
        BinaryToHex = "C"
    Case "1101"
        BinaryToHex = "D"
    Case "1110"
        BinaryToHex = "E"
    Case "1111"
        BinaryToHex = "F"
    Case Else
        BinaryToHex = "Z"
    End Select
End Function

Function WordToBinary(strWord)
' Function Converts a 8 digit hex value into it's 32 bit binary equivalent
'
' Written By: Mark Jager
' Written Date: 8/10/2000
'
' Free to distribute as long as code is not modified, and header kept intact
'
	Dim strTemp, strBinary 
	Dim intPos

	For intPos = 1 To Len(strWord)
	    strTemp = Mid(strWord, cint(intPos), 1)
	    strBinary = strBinary & IntToBinary(Asc(strTemp))
	Next

	WordToBinary = strBinary

End Function

Function HexToInt(strHex)
' Function Converts a hex word to its base 10(decimal) equivalent
'
' Written By: Mark Jager
' Written Date: 8/10/2000
'
' Free to distribute as long as code is not modified, and header is kept intact
'

	Dim intNew, intPos, intLen

	intNew = 0
	intLen = CDbl(len(strHex)) - 1
	
	For intPos = CDbl(intLen) to 0 step -1
	    Select Case Mid(strHex, CDbl(intPos) + 1, 1)       
	    Case "0"
			intNew = CDbl(intNew) + (0 * 16^CDbl(intLen - intPos))
	    Case "1"
	        intNew = CDbl(intNew) + (1 * 16^CDbl(intLen - intPos))
	    Case "2"
	        intNew = CDbl(intNew) + (2 * 16^CDbl(intLen - intPos))
	    Case "3"
	        intNew = CDbl(intNew) + (3 * 16^CDbl(intLen - intPos))
	    Case "4"
	        intNew = CDbl(intNew) + (4 * 16^CDbl(intLen - intPos))
	    Case "5"
	        intNew = CDbl(intNew) + (5 * 16^CDbl(intLen - intPos))
	    Case "6"
	        intNew = CDbl(intNew) + (6 * 16^CDbl(intLen - intPos))
	    Case "7"
	        intNew = CDbl(intNew) + (7 * 16^CDbl(intLen - intPos))
	    Case "8"
	        intNew = CDbl(intNew) + (8 * 16^CDbl(intLen - intPos))
	    Case "9"
	        intNew = CDbl(intNew) + (9 * 16^CDbl(intLen - intPos))
	    Case "A"
	        intNew = CDbl(intNew) + (10 * 16^CDbl(intLen - intPos))
	    Case "B"
	        intNew = CDbl(intNew) + (11 * 16^CDbl(intLen - intPos))
	    Case "C"
	        intNew = CDbl(intNew) + (12 * 16^CDbl(intLen - intPos))
	    Case "D"
	        intNew = CDbl(intNew) + (13 * 16^CDbl(intLen - intPos))
	    Case "E"
	        intNew = CDbl(intNew) + (14 * 16^CDbl(intLen - intPos))
	    Case "F"
	        intNew = CDbl(intNew) + (15 * 16^CDbl(intLen - intPos))
		End Select

	Next

	HexToInt = CDbl(intNew)
	
End Function

Function IntToBinary(intNum)

' Function Converts an integer number to it's binary equivalent
'
' Written By: Mark Jager
' Written Date: 8/10/2000
'
' Free to distribute as long as code is not modified, and header is kept intact
'
    Dim strBinary, strTemp
    Dim intNew, intTemp
    Dim dblNew
    
    intNew = intNum
    
    Do While intNew > 1
        dblNew = CDbl(intNew) / 2
        intNew = Round(CDbl(dblNew) - 0.1, 0)
        If CDbl(dblNew) = CDbl(intNew) Then
            strBinary = "0" & strBinary
        Else
            strBinary = "1" & strBinary
        End If

    Loop
    
    strBinary = intNew & strBinary
    
    intTemp = Len(strBinary) mod 8
    
    For intNew = intTemp To 7
        strBinary = "0" & strBinary
    Next
    
    IntToBinary = strBinary
    
End Function

Function PadBinary(strBinary)

' Function adds 0's to a binary string until it reaches 448 bits.
' The lenghth of the original string is incoded into the last 16 bits.
' The end result is a binary string 512 bits long
'
' Written By: Mark Jager
' Written Date: 8/10/2000
'
' Free to distribute as long as code is not modified, and header is kept intact
'

	Dim intPos, intLen
	Dim strTemp
	    
	intLen = Len(strBinary)
	    
	strBinary = strBinary & "1"
	    
	For intPos = Len(strBinary) To 447
	    strBinary = strBinary & "0"
	Next
	    
	strTemp = IntToBinary(intLen)
	    
	For intPos = Len(strTemp) To 63
	    strTemp = "0" & strTemp
	Next
	    
	strBinary = strBinary & strTemp
	    
	PadBinary = strBinary
	    
End Function

Function BlockToHex(strBinary)

' Function Converts a 32 bit binary string into it's 8 digit hex equivalent
'
' Written By: Mark Jager
' Written Date: 8/10/2000
'
' Free to distribute as long as code is not modified, and header is kept intact
'
	Dim intPos
	Dim strHex

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产日产欧美一区二区三区| 日韩欧美亚洲国产精品字幕久久久 | 日韩一二在线观看| 2024国产精品| 性做久久久久久久久| 国产九色精品成人porny| 色噜噜狠狠成人中文综合| 欧美v日韩v国产v| 一区二区三区美女| 99久久婷婷国产综合精品| 精品久久久久av影院| 亚洲va韩国va欧美va精品| 成年人网站91| 国产亚洲欧美日韩在线一区| 奇米精品一区二区三区四区| 欧美在线视频你懂得| 国产精品免费观看视频| 国产裸体歌舞团一区二区| 制服丝袜激情欧洲亚洲| 亚洲精品国产a久久久久久| 国产99精品在线观看| 精品久久国产字幕高潮| 日韩精品午夜视频| 欧美日韩久久不卡| 亚洲一区在线视频观看| 99久久99久久精品免费看蜜桃| 亚洲国产高清不卡| 波多野结衣在线aⅴ中文字幕不卡| 久久久久久99精品| 国产超碰在线一区| 国产精品久久久久久户外露出 | 激情久久五月天| 日韩一区二区三| 麻豆精品国产传媒mv男同| 日韩视频在线一区二区| 热久久一区二区| 精品国产精品网麻豆系列| 精品一区二区在线看| 日韩免费性生活视频播放| 美女脱光内衣内裤视频久久网站 | 欧美视频自拍偷拍| 亚洲自拍偷拍av| 欧美日韩在线精品一区二区三区激情| 亚洲欧美另类综合偷拍| 色狠狠色狠狠综合| 亚洲成人综合视频| 欧美一区二区福利视频| 美女免费视频一区| 精品999在线播放| 国产精品99久久久| 中文字幕一区在线观看| 欧洲一区二区av| 美腿丝袜亚洲三区| 久久久99精品免费观看不卡| 国产盗摄女厕一区二区三区| 国产日韩欧美a| 99国产欧美另类久久久精品| 一区二区三区欧美在线观看| 欧美一区午夜精品| 国产剧情在线观看一区二区| 自拍偷拍国产精品| 欧美日韩精品一区二区三区蜜桃 | 色偷偷成人一区二区三区91 | 7777精品伊人久久久大香线蕉超级流畅| 亚洲成人精品在线观看| 26uuu另类欧美亚洲曰本| 欧美日韩一区二区电影| 黄色精品一二区| 一区二区在线观看免费视频播放| 欧美日韩成人综合天天影院| 韩国精品主播一区二区在线观看| 中文字幕一区二区三区在线播放 | 在线一区二区视频| 精品亚洲国内自在自线福利| 亚洲精品国产无天堂网2021| 精品国产精品网麻豆系列| 色女孩综合影院| 国产在线视频一区二区| 夜夜精品视频一区二区| 久久久久国产成人精品亚洲午夜| 欧美亚洲动漫制服丝袜| 福利电影一区二区| 免费看日韩a级影片| 亚洲免费在线视频| 国产日韩影视精品| 欧美电影精品一区二区| 欧美在线free| 99久久精品情趣| 国产一级精品在线| 亚洲第一av色| 亚洲品质自拍视频| 国产午夜精品在线观看| 91精品综合久久久久久| 色综合久久久久久久| 国产一区二区精品在线观看| 日本在线不卡视频一二三区| 亚洲女同女同女同女同女同69| 国产日韩高清在线| 欧美mv和日韩mv国产网站| 欧美日韩国产片| 日本韩国一区二区三区视频| 不卡在线观看av| 国产成人综合在线播放| 激情成人综合网| 国产一区二区日韩精品| 精品一区二区三区香蕉蜜桃| 蜜桃在线一区二区三区| 奇米综合一区二区三区精品视频| 亚洲妇女屁股眼交7| 亚洲最大成人网4388xx| 一区二区三区四区高清精品免费观看| 日本一区二区高清| 欧美高清在线视频| 亚洲欧洲性图库| 亚洲色欲色欲www在线观看| 中文字幕日韩精品一区| 日韩一区在线播放| 一区二区国产视频| 日韩精品三区四区| 奇米精品一区二区三区在线观看| 久久66热re国产| 国产精品羞羞答答xxdd| 风间由美性色一区二区三区| av亚洲精华国产精华精华| 91视频精品在这里| 欧美体内she精高潮| 日韩欧美国产综合一区| 久久先锋影音av鲁色资源| 亚洲国产岛国毛片在线| 亚洲免费观看高清完整版在线| 亚洲日本免费电影| 日韩一区欧美二区| 国产资源精品在线观看| 成人毛片在线观看| 色国产综合视频| 欧美一级免费大片| 国产调教视频一区| 一区二区理论电影在线观看| 天堂蜜桃91精品| 国产成人综合网| 欧美色男人天堂| 欧美xxxxxxxx| 亚洲色图欧美激情| 男女激情视频一区| 国产黄人亚洲片| 欧美中文字幕一区二区三区 | 欧美日韩久久久| 久久久久免费观看| 亚洲激情五月婷婷| 美女网站一区二区| 色婷婷亚洲婷婷| 欧美电影精品一区二区| 亚洲色图视频网站| 精品在线免费观看| 色综合天天综合网天天狠天天| 91精品国产综合久久精品性色| 久久日韩粉嫩一区二区三区| 一区二区三区四区精品在线视频 | 欧洲生活片亚洲生活在线观看| 日韩一级完整毛片| 亚洲精品自拍动漫在线| 九一九一国产精品| 欧美日韩精品一区二区三区| 国产精品美女久久久久aⅴ| 日韩激情在线观看| 91在线精品一区二区三区| 精品少妇一区二区三区视频免付费| 亚洲欧美影音先锋| 国产福利一区二区三区视频| 91麻豆精品国产91久久久久久久久| 国产精品天天看| 国产麻豆视频一区二区| 欧美性做爰猛烈叫床潮| 国产精品美女久久久久aⅴ| 狠狠色狠狠色综合| 在线播放中文字幕一区| 亚洲欧美另类小说| 白白色 亚洲乱淫| 久久久不卡影院| 激情亚洲综合在线| 91精品国产91久久久久久一区二区| 亚洲色图视频免费播放| 粉嫩av亚洲一区二区图片| 欧美大片免费久久精品三p| 亚洲国产精品人人做人人爽| 91蜜桃在线免费视频| 自拍偷拍国产亚洲| www.在线成人| 中文字幕在线视频一区| 国产凹凸在线观看一区二区| 精品日韩一区二区三区 | 国产成人精品aa毛片| 精品国产一二三| 麻豆久久久久久久| 欧美成人aa大片| 日本aⅴ精品一区二区三区| 91精品国产欧美一区二区成人| 亚洲国产精品久久久久婷婷884| 欧美在线免费播放| 午夜伦欧美伦电影理论片|