Blogger Tips and TricksLatest Tips And TricksBlogger Tricks

MD5 IMPLEMENTATION IN JAVA

PROGRAM CODE




public class MD5
{
   FOR FULL PROGRAM and lab manual
CONTACT:
CELL:9789697608
           9566627095
EMAIL:hitechguil@gmail.com 
    }

   

    public static void main(String[] args)
    {
        String[] testStrings = { "", "Sanfoundry", "Message Digest",
                "abcdefghijklmnopqrstuvwxyz" };
        for (String s : testStrings)
            System.out.println("0x" + toHexString(computeMD5(s.getBytes()))
                    + " <== \"" + s + "\"");
        return;
    }
}

OUTPUT:

No comments:

Post a Comment

Flag Counter