瑞星计算MD5的数值为什么和这段VB代码计算结果不一致?
文件:WindowsXP系统自带alg.exe
瑞星计算MD5的数值:A9DE20DF2C89B6B2FFDA0E6CD52A8599
下面的VB代码计算的数值:C4F7A9C731CF0E48F3C72F2541112C8E
VB代码如下:
'
'这段代码是一个Form1窗体的代码
'
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 3120
ClientLeft = 60
ClientTop = 420
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3120
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin VB.TextBox Text1
Height = 300
Left = 60
TabIndex = 1
Text = "Text1"
Top = 900
Width = 4560
End
Begin VB.CommandButton Command1
Caption = "Command1"
Height = 495
Left = 1725
TabIndex = 0
Top = 1980
Width = 1215
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim I As New ClsMD5
Text1.Text = I.Md5_File_Calc(App.Path & "\" & "alg.exe")
MsgBox I.Md5_File_Calc(App.Path & "\" & "alg.exe")
End Sub