Here you can find the source of sha5Encode(byte[] content)
public static byte[] sha5Encode(byte[] content) throws NoSuchAlgorithmException, InvalidKeyException
//package com.java2s; //License from project: Apache License import java.security.InvalidKeyException; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; public class Main { public static byte[] sha5Encode(byte[] content) throws NoSuchAlgorithmException, InvalidKeyException { MessageDigest md = MessageDigest.getInstance("SHA-512"); byte[] mdRes = md.digest(content); return mdRes; }//from ww w . j av a 2 s. co m }