VB6.0中实现MD5加密算法代码
来源:优易学  2011-9-13 8:35:21   【优易学:中国教育考试门户网】   资料下载   IT书店

  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)
  a = &H67452301
  b = &HEFCDAB89
  c = &H98BADCFE
  d = &H10325476
  For k = 0 To UBound(x) Step 16
  AA = a
  BB = b
  CC = c
  DD = d

上一页  [1] [2] [3] [4] [5] [6] 下一页

责任编辑:小草

文章搜索:
 相关文章
热点资讯
资讯快报
热门课程培训