国产综合精品蜜芽|国偷自产一区二区视频|性做久久久久免费观看|亚洲欧洲国产综合另类国码|亚洲中文字幕1区2区3区|国产成人欧美综合在线影院|无码久久久久久中文字幕视频|国产精品高清一区二区三区久久

  • 服務(wù)熱線:400-103-0299
  • 在線客服
  • 手機(jī)端
    公眾號(hào)二維碼

HTML5的基礎(chǔ)知識(shí)內(nèi)容


發(fā)布日期:2014-12-05
 
 
 
海東科技先來帶大家看一看HTML5的進(jìn)制編碼的基礎(chǔ)知識(shí)內(nèi)容吧,相信對(duì)于大家學(xué)習(xí)HTML5會(huì)有很大的幫助。
  16進(jìn)制編碼轉(zhuǎn)換 
Private Function WordToHex(byVal lValue) 
Dim lByte 
Dim lCount 
For lCount = 0 To 3 
lByte = RShift(lValue, lCount * BITS_TO_A_BYTE) And MD5_m_lOnBits(BITS_TO_A_BYTE - 1) 
WordToHex = WordToHex & Right("0" & Hex(lByte), 2) 
Next 
End Function 
 
'MD5主函數(shù) MD5(字符串,編碼位) 
Public Function MD5(byVal sMessage, byVal sType) 
Dim x 
Dim k 
Dim AA 
Dim BB 
Dim CC 
Dim DD 
Dim a 
Dim b 
Dim c 
Dim d 
Const S11 = 7 
Const S12 = 12 
Const S13 = 17 
Const S14 = 22 
Const S21 = 5 
Const S22 = 9 
Const S23 = 14 
Const S24 = 20 
Const S31 = 4 
Const S32 = 11 
Const S33 = 16 
Const S34 = 23 
Const S41 = 6 
Const S42 = 10 
Const S43 = 15 
Const S44 = 21 
x = ConvertToWordArray(sMessage) '加密步驟1:數(shù)組轉(zhuǎn)換 
a = &H67452301 
b = &HEFCDAB89 
c = &H98BADCFE 
d = &H10325476 
For k = 0 To UBound(x) Step 16 
AA = a 
BB = b 
CC = c 
DD = d 
  '加密步驟2:編碼轉(zhuǎn)換 
MD5_FF a, b, c, d, x(k + 0), S11, &HD76AA478 
MD5_FF d, a, b, c, x(k + 1), S12, &HE8C7B756 
MD5_FF c, d, a, b, x(k + 2), S13, &H242070DB 
MD5_FF b, c, d, a, x(k + 3), S14, &HC1BDCEEE 
MD5_FF a, b, c, d, x(k + 4), S11, &HF57C0FAF 
MD5_FF d, a, b, c, x(k + 5), S12, &H4787C62A 
MD5_FF c, d, a, b, x(k + 6), S13, &HA8304613 
MD5_FF b, c, d, a, x(k + 7), S14, &HFD469501 
MD5_FF a, b, c, d, x(k + 8), S11, &H698098D8 
MD5_FF d, a, b, c, x(k + 9), S12, &H8B44F7AF 
MD5_FF c, d, a, b, x(k + 10), S13, &HFFFF5BB1