• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
URGENT, calculating MD5
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

URGENT, calculating MD5


  • Subject: URGENT, calculating MD5
  • From: Amedeo Mantica <email@hidden>
  • Date: Mon, 6 Mar 2006 21:31:45 +0100

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  "[B@6afa2"

any help?
Thanks
Amedeo

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: URGENT, calculating MD5
      • From: Timo Hoepfner <email@hidden>
    • Re: URGENT, calculating MD5
      • From: Mark Morris <email@hidden>
    • Re: URGENT, calculating MD5
      • From: Piotr Intres <email@hidden>
  • Prev by Date: Re: PDF Generation Best Practices for Web Objects Newbie.
  • Next by Date: Re: URGENT, calculating MD5
  • Previous by thread: Re: PDF Generation Best Practices for Web Objects Newbie.
  • Next by thread: Re: URGENT, calculating MD5
  • Index(es):
    • Date
    • Thread