MD5 Message Digest Key

James Mernin (jmernin@eurologic.com)
Fri, 16 Oct 1998 13:08:21 +0100

I have a question about the MessageDigest class in java.security.

I cannot see a way of supplying a key to the digest method for my
MessageDigest object. I have some existing C code which has a function
called MD5Digest and it takes as input a "data stream" AND a "key". It uses
this key to produce an appropriate message digest.

I would like to create a similar message digest from Java, send it over the
network (using sockets) and use my existing C code to verify it in the
usual manner.

I have searched archive upon archive and web site after web site but to no
avail - it does not mention anywhere how to specify a key to the digest
method.

Can you shed any light on this subject ?

Best Regards,
James Mernin.

+--------------------------------------------------------------------+
| |
| _/_/_/_/ _/ James E. Mernin, Software Development Engineer |
| _/ _/ _/ Eurologic Systems Ltd. |
| _/_/_/_/ _/ TEL: +353-1-2061200 FAX: +353-1-2061291/2 |
| _/ _/ Email: mailto:jmernin@eurologic.com |
| _/_/_/_/ _/_/_/_/ WWW: http://www.eurologic.com |
| |
+--------------------------------------------------------------------+

See Eurologic at COMDEX, Las Vegas November 16-20 1998
Eurologic Booth L 4114
Fibre Channel Loop Community Room N246
http://www.eurologic.com/Comdex/comdex.htm