Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MD5 in COBOL

Status
Not open for further replies.

antonio2k

Programmer
Joined
Aug 18, 2004
Messages
1
Location
US
Hello!
I have thought to make a cobol program that it creates the MD5 of a text, ¿do you know if already exists a cobol program that does it? ¿where I can find the source code of the md5 algorithm in cobol?

Sorry because my bad english!

Thanx!
 
I did not find a COBOL source code for MD5, but:

Source code of MD5 in C

Some other example written in C, this time with additional comments. The official description is on link:
(IETF = Internet Enginering Task Force; RFC1321 = MD5)

The JAVA implementation of MD5

A commercial – pay site – describing the same problem.
It dates back from June 2002 and may have a COBOL solution!!!

A good article related to random numbers and encryption algorithms.

Not very specific...but may be of interest.
This site has links to MD5 descriptions
(sources I found through the links were again written in C)

An old description of MD5 – again in C – however, this
source includes other encryption source codes as well!

I have not checked the contents of this link, but the source is supposed to be in C++.
The following link gives a hint of what to expect:



Sorry...I know it is not much of a help.
It seems to me that an MD5 implementation does not exist in COBOL.

Advise:
Call the MD5 function from within your source program
using one of the C programs above (or the C++ or JAVA version).


Regards, Wim Ahlers.
 
While not the MD5 algorithm, you might have a look at this very extensive thread thread209-571499

The benefit of studying this is that you will need to do very similar operations, and the CRC-32 implementation shown in the thread is an 'all COBOL' implementation.

The MD5 is a bit more complicated, but the low-level techniques would be very similar.

Please advise which COBOL compiler and operating system you are using.

(Wim, if I can find the time, an 'all COBOL' MD5 will exist!)

Tom Morrison
 
Just back from a short holiday...

To: Tom

Thanks for the link. I did see it before but I did not study it.

By the way...I was trying to be careful when I said:
'It seems to me that an MD5 implementation does not exist in COBOL.'

By your answer I assume you are 'challenged' to code an all COBOL implementation of the MD5 algorithm.
...In that case I just be lazy and wait for your answer :-)


Regards, Wim Ahlers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top