home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 18 REXX
/
18-REXX.zip
/
rexx_md5.zip
/
read.me
< prev
next >
Wrap
Text File
|
1998-11-10
|
3KB
|
79 lines
10 Nov 1998. Daniel Hellerstein, danielh@econ.ag.gov
Two REXX tools for computing MD5 digests
Description:
REXX_MD5 contains two OS/2 REXX tools that allow you to compute
the MD5 digest of any string.
1) REXX_MD5) An "all rexx code" procedure
For example: MyMD5=rexx_md5('a string to digest')
Since REXX is weak at repetitive math, this
method (REXX_MD5) is not very fast (actually, it's
excuriatingly slow on large strings). For smaller
strings (say, less then a few hundred characters) it's
tolerable.
2) SRXFUNC) A DLL containing SRX_MD5
For example: MyMD5=srx_md5('a string to digest')
For longer strings, the SRX_MD5 function (contained in
the SRXFUNC.DLL) is recommended -- it's much faster
and just as easily called.
The only drawback to using SRX_MD5 is that you have to distribute the
DLL as a seperate file; whereas REXX_MD5 can be included in your
REXX source code.
CAUTION: for unknown reasons, rapid and repetitive calls to SRX_MD5 can
cause SYS3175 errors.
MD5 digests of files:
If you need to compute MD5 digests of files, you
will have to read the file into a string, and
feed this string to SRX_MD5 (or REXX_MD5).
As an alternative, you might find the MD5.EXE at
http://hobbes.nmsu.edu/pub/os2/unix/apps/misc/md5_os2.zip
to be convenient (it's a standalone program).
Example:
The TESTMD5.CMD demonstrates the use of both tools (and shows how to
load the SRX_MD5 procedure from SRXMD5.DLL).
Source Code:
MD5SRC.ZIP contains the source code used to create SRXMD5.DLL. It's
written in Fortran (WATCOM 11.0), and probably requires WATCOM 11.0
to recreate (use the MAKEFILE).
Conditions of Use:
The programs contained herein may be freely used by anyone for any purpose.
You may include this product in your own work and distribute it freely,
with the understanding that recipients of this product have the same
rights. Proper attribution is expected, but need not be prominent.
Disclaimer:
We, the authors of REXX_MD5 and any potentially affiliated institutions,
disclaim any and all liability for damages due to the use, misuse, or
failure of the product or subsets of the product. Use it at your
own risk! That said: the product has been tested, and is used in other
work of ours (but please do not the above caution). If you should find a
problem, PLEASE LET US KNOW (see the address at the top of this document).
Bonus: Also contains srx_sha: SHA-1 digest.