1 |
joko |
1.1 |
If you need to compute MD5 digest strings for files or messages in your |
2 |
|
|
projects, this stuff might be useful. Remember, though, that I can give |
3 |
|
|
you NO WARRANTIES at all (this package is provided "as is"). |
4 |
|
|
|
5 |
|
|
Files in this package: |
6 |
|
|
|
7 |
|
|
aamd532.dll - DLL implementing RSA MD5 digest algorithm |
8 |
|
|
MD5.bas - A VB MODULE wrapper for the RSA MD5 DLL |
9 |
|
|
Wrapper Functions: |
10 |
|
|
MD5String (some string) -> MD5 digest of the given string as 32 bytes string |
11 |
|
|
MD5File (some filename) -> MD5 digest of the file's content as a 32 bytes string |
12 |
|
|
returns a null terminated "FILE NOT FOUND" if unable to open the |
13 |
|
|
given filename for input |
14 |
|
|
read-me.txt - this file |
15 |
|
|
Rivest-MD5.txt - original text and C source code from RSA |
16 |
|
|
|
17 |
|
|
To install and use: |
18 |
|
|
|
19 |
|
|
1. Unpack the files. |
20 |
|
|
2. Copy the DLL of your choice to somewhere in your search path, so |
21 |
|
|
that your applications can find it. |
22 |
|
|
IMPORTANT: The aamd532.dll DLL MUST be somewhere in your search path |
23 |
|
|
for this to work |
24 |
|
|
3. Insert the BAS module in your VB projects. |
25 |
|
|
4. Call the wrapper functions as needed. |
26 |
|
|
|
27 |
|
|
If you don't like VB, or if you need something more elaborate, maybe you should |
28 |
|
|
download md5server.zip, at ftp://nt00.esquadro.com.br/md5server.zip. It's |
29 |
|
|
an ActiveX instantiable object wrapper around the DLL that can be used from |
30 |
|
|
any program, no matter what language you wrote their source code in. This |
31 |
|
|
in process server is also free, and can be part of a DELPHI application, |
32 |
|
|
for instance. MD5Server.zip is a 1.2 MB bundle. |
33 |
|
|
|
34 |
|
|
RSA required notices follow. |
35 |
|
|
|
36 |
|
|
The MD5 algorithm is defined in RFC1321. |
37 |
|
|
|
38 |
|
|
The basic C code implementing the algorithm is derived |
39 |
|
|
from that in the RFC and is covered by the following |
40 |
|
|
copyright: Copyright (C) 1991-2, RSA Data Security, Inc. |
41 |
|
|
Created 1991. All rights reserved. |
42 |
|
|
|
43 |
|
|
License to copy and use this software is granted provided |
44 |
|
|
that it is identified as the "RSA Data Security, Inc. MD5 |
45 |
|
|
Message-Digest Algorithm" in all material mentioning or |
46 |
|
|
referencing this software or this function. |
47 |
|
|
|
48 |
|
|
License is also granted to make and use derivative works |
49 |
|
|
provided that such works are identified as "derived from |
50 |
|
|
the RSA Data Security, Inc. MD5 Message-Digest Algorithm" |
51 |
|
|
in all material mentioning or referencing the derived |
52 |
|
|
work. |
53 |
|
|
|
54 |
|
|
RSA Data Security, Inc. makes no representations |
55 |
|
|
concerning either the merchantability of this software or |
56 |
|
|
the suitability of this software for any particular |
57 |
|
|
purpose. It is provided "as is" without express or implied |
58 |
|
|
warranty of any kind. |
59 |
|
|
|
60 |
|
|
These notices must be retained in any copies of any part |
61 |
|
|
of this documentation and/or software. |
62 |
|
|
|
63 |
|
|
This is derived from the RSA Data Security, Inc. MD5 Message-Digest Algorithm |
64 |
|
|
|
65 |
|
|
Bugs, questions, suggestions, complaints, etc: |
66 |
|
|
Francisco Carlos Piragibe de Almeida |
67 |
|
|
piragibe@esquadro.com.br |