|
From: Jeroen C. v. G. <gel...@cr...> - 2003-05-20 15:20:27
|
On Monday, May 19, 2003, at 13:02 US/Eastern, Timo Glaser wrote:
> I've installed the cryptix library and java sdk 1.4.
>
> Now I am trying to create a MD4 Hash of a String but I've no idea what
> I
> have to do.
You will need to convert the String (which is unicode) to a series of
bytes using the normal Java methods. Then you use something like:
byte[] strBytes = ...
MessageDigest md = MessageDigest.getInstance("MD4");
byte[] dig = md.digest(strBytes);
-J
--
Jeroen C. van Gelderen - je...@va...
"Who deters the deterrers?"
|