Here you can find the source of SHAHash(byte[] input)
public static byte[] SHAHash(byte[] input)
//package com.java2s; //License from project: Open Source License import java.security.*; public class Main { /**//ww w . j a v a 2 s . c o m * Performs an SHA1 hash of an input byte array */ public static byte[] SHAHash(byte[] input) { try { final MessageDigest md = MessageDigest.getInstance("SHA-1"); return md.digest(input); } catch (final NoSuchAlgorithmException e) { e.printStackTrace(); } return null; } }