Package com.dotcms.repackage.org.bouncycastle.crypto.digests

Examples of com.dotcms.repackage.org.bouncycastle.crypto.digests.SHA1Digest.doFinal()


  private static String hashPath(String path) {
    byte[] data=path.getBytes();
    SHA1Digest digest=new SHA1Digest();
    digest.update(data, 0, data.length);
    byte[] result=new byte[digest.getDigestSize()];
    digest.doFinal(result, 0);
    String ret=null;
    ret=new String(Base64.encode(result));   
    return ret;
  }
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.