dll包含md5 des base64 crc16校验值

时间:2014-11-20 06:34:09
【文件属性】:

文件名称:dll包含md5 des base64 crc16校验值

文件大小:34KB

文件格式:RAR

更新时间:2014-11-20 06:34:09

dll md5 des base64 crc16校验值

包含vb调用示例 Option Explicit Private Declare Function MD5String Lib "CommonFunc.dll" (ByVal s As String) As String Private Declare Function GuidString Lib "CommonFunc.dll" () As String Private Declare Function Base64Enc Lib "CommonFunc.dll" (ByVal s As String) As String Private Declare Function Base64Dec Lib "CommonFunc.dll" (ByVal s As String) As String Private Declare Function CRC_16 Lib "CommonFunc.dll" (ByRef buf As Byte, ByVal nLen As Long) As Long Private Declare Function DesEncrypt Lib "CommonFunc.dll" (ByVal s As String, ByVal key As String) As String Private Declare Function DesDecrypt Lib "CommonFunc.dll" (ByVal s As String, ByVal key As String) As String Private Sub btnCRC16_Click() Dim FileNumber As Long, lngSize As Long Dim bytFileContent() As Byte FileNumber = FreeFile() Open App.Path & "\工程1.exe" For Binary As #FileNumber lngSize = LOF(FileNumber) ReDim bytFileContent(lngSize - 1) Get #FileNumber, , bytFileContent Close #FileNumber Dim lngCRC As Long lngCRC = CRC_16(bytFileContent(0), lngSize - 1) Text1.Text = Hex(lngCRC) End Sub


【文件预览】:
工程1.exe
Form1.frm
CommonFunc.dll
工程1.vbp

网友评论