code: public static String toSHA(byte[] input) {
  		try {
  			MessageDigest md = MessageDigest.getInstance("SHA-256");
  			return byteArray2Hex(md.digest(input));
  		} catch (NoSuchAlgorithmException nsae) {
  			// this code should never be reached!
  		}
  		return null;
  	}
docs: Converts an input byte array to a SHA hash. The actual hash strength is
  hidden by the method name to allow for future-proofing this API, but the
  current default is SHA-256.
  
  @param input
  Byte array to hash
  @return SHA hash of the input String, hex encoded.