import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;
import java.math.BigInteger;
import java.security.MessageDigest;
public class FileHashkeyUtil {
public static String Getsha1HashCode(String filePath) throws FileNotFoundException{
FileInputStream fis = new FileInputStream(filePath);
return getHashCode(fis, "SHA-1");//MD5/SHA-1/SHA-256
}
public static String Getsha1HashCode32(String filePath) throws FileNotFoundException{
FileInputStream fis = new FileInputStream(filePath);
return getHashCode32(fis, "SHA-1");//MD5/SHA-1/SHA-256
}
public static String Getsha256HashCode(String filePath) throws FileNotFoundException{
FileInputStream fis = new FileInputStream(filePath);
return getHashCode(fis, "SHA-256"