<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'md5' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'md5' posted on the 'WEB-Services / SOAP' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Tue, 18 Jun 2013 16:19:11 -0700</pubDate>
    <lastBuildDate>Tue, 18 Jun 2013 16:19:11 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>md5</title>
      <link>http://www.programmersheaven.com/mb/web-services/419713/419713/md5/</link>
      <description>Hello everybody!I would like some help with something!I'm working with eclipse (helios), apache tomcat 6 and axis 2 and i'm trying to create a web service that takes a string as an input and generates an md5 hush. I have done the web service part using the following code:&lt;br /&gt;
&lt;br /&gt;
import java.io.UnsupportedEncodingException; &lt;br /&gt;
import java.security.MessageDigest; &lt;br /&gt;
import java.security.NoSuchAlgorithmException; &lt;br /&gt;
&lt;br /&gt;
public class AeSimpleMD5 { &lt;br /&gt;
&lt;br /&gt;
private static String convertToHex(byte[] data) { &lt;br /&gt;
StringBuffer buf = new StringBuffer();&lt;br /&gt;
for (int i = 0; i &amp;lt; data.length; i++) { &lt;br /&gt;
int halfbyte = (data[i] &amp;gt;&amp;gt;&amp;gt; 4) &amp;amp; 0x0F;&lt;br /&gt;
int two_halfs = 0;&lt;br /&gt;
do { &lt;br /&gt;
if ((0 &amp;lt;= halfbyte) &amp;amp;&amp;amp; (halfbyte &amp;lt;= 9)) &lt;br /&gt;
buf.append((char) ('0' + halfbyte));&lt;br /&gt;
else &lt;br /&gt;
buf.append((char) ('a' + (halfbyte - 10)));&lt;br /&gt;
halfbyte = data[i] &amp;amp; 0x0F;&lt;br /&gt;
} while(two_halfs++ &amp;lt; 1);&lt;br /&gt;
} &lt;br /&gt;
return buf.toString();&lt;br /&gt;
} &lt;br /&gt;
&lt;br /&gt;
public static String MD5(String text) &lt;br /&gt;
throws NoSuchAlgorithmException, UnsupportedEncodingException { &lt;br /&gt;
MessageDigest md;&lt;br /&gt;
md = MessageDigest.getInstance("MD5");&lt;br /&gt;
byte[] md5hash = new byte[32];&lt;br /&gt;
md.update(text.getBytes("iso-8859-1"), 0, text.length());&lt;br /&gt;
md5hash = md.digest();&lt;br /&gt;
return convertToHex(md5hash);&lt;br /&gt;
} &lt;br /&gt;
} &lt;br /&gt;
&lt;br /&gt;
and it works great. The probleme is that i want to create the client for this and i can't understand the code that i'm must write. I have found many tutorials so I don't thing that i will have a probleme on what i must do. Just the code! Please help! Thanx in advance!!! &lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/web-services/419713/419713/md5/</guid>
      <pubDate>Mon, 15 Nov 2010 02:35:30 -0700</pubDate>
      <category>WEB-Services / SOAP</category>
    </item>
  </channel>
</rss>