how to make rest call with key and secret using md5 in android?
<p>I am trying to implement rest call with key and secret using md5. I tried a way but its giving me an error, </p>

<p>{"status":"error","message":"Signature mismatch"}. </p>

<p>Please help me, its very urjent!!</p>

<h1>this is my md5 method,</h1>

<pre><code>private static final String md5(final String parem) {
    try {
        // Create MD5 Hash
        MessageDigest digest = java.security.MessageDigest
                .getInstance("MD5");
        digest.update(parem.getBytes());
        byte messageDigest[] = digest.digest();

        // Create Hex String
        StringBuffer hexString = new StringBuffer();
        for (int i = 0; i &lt; messageDigest.length; i++) {
            String h = Integer.toHexString(0xFF &amp; messageDigest[i]);
            while (h.length() &lt; 2)
                h = "0" + h;
            hexString.append(h);
        }
        return hexString.toString();
    } catch (NoSuchAlgorithmException e) {
        e.printStackTrace();
    }
    return "";
}
</code></pre>

<p>Thanks in advance.</p>
