Package com.wesabe.grendel.openpgp.tests

Examples of com.wesabe.grendel.openpgp.tests.HashAlgorithmTest$MD5


*/
public class MD5Test extends TestCase
{
  public void testMD5() throws Exception
  {
    MD5 md5 = new MD5();
   
    md5.update("foobarfoobarfoobarfoobarfoobarfoobarfoobarfoobarfoobarfoobar".getBytes());
    byte[] result = md5.digest();
   
    System.out.println(StringTools.asHex(result));
  }
View Full Code Here

TOP

Related Classes of com.wesabe.grendel.openpgp.tests.HashAlgorithmTest$MD5

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.