Hi,
Your function is returning a String (array of bytes) and it works as is
written :)
Received strings look strange because the array may contain
non-character values and should not be displayed with .toString().
Try to display it as byte values - it should work just fine.
Regards,
Piotr Intres
Amedeo Mantica napisaĆ(a):
my function:
String calculateMd5 (String message)
{
MessageDigest myMAC = MessageDigest.getInstance("MD5");
byte[] messageBytes=message.getBytes();
myMAC.update(messageBytes);
byte[] result = myMAC.digest();
String calculatedMd5=result.toString();
return calculatedMd5;
}
I ALWAYS GOT A STRING LIKE "[EMAIL PROTECTED]"
any help?
Thanks
Amedeo
------------------------------------------------------------------------
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/piotr%40power.com.pl
This email sent to [EMAIL PROTECTED]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]