@Test public void testsha1sum4bytesasHex() throws NoSuchAlgorithmException, IllegalArgumentException { String hex = HashUtil.sha1sumHex("354934".getBytes(), 0, 4); assertEquals("f0c65ccc", hex); nop(); }
public static String sha1sumHex(byte[] data, Integer startIdxInc, Integer stopIdxExc) throws NoSuchAlgorithmException { String out; byte[] sum; sum = sha1sum(data, startIdxInc, stopIdxExc); out = BitConverters.bytes2hex(sum); return out; }
HashUtil { public static String sha1sumHex(byte[] data, Integer startIdxInc, Integer stopIdxExc) throws NoSuchAlgorithmException { String out; byte[] sum; sum = sha1sum(data, startIdxInc, stopIdxExc); out = BitConverters.bytes2hex(sum); return out; } }
HashUtil { public static String sha1sumHex(byte[] data, Integer startIdxInc, Integer stopIdxExc) throws NoSuchAlgorithmException { String out; byte[] sum; sum = sha1sum(data, startIdxInc, stopIdxExc); out = BitConverters.bytes2hex(sum); return out; }  }
HashUtil { public static String sha1sumHex(byte[] data, Integer startIdxInc, Integer stopIdxExc) throws NoSuchAlgorithmException { String out; byte[] sum; sum = sha1sum(data, startIdxInc, stopIdxExc); out = BitConverters.bytes2hex(sum); return out; }  static byte[] sha1sum(byte[] data, Integer startIdxInc, Integer stopIdxExc); static byte[] sha1sum(String data); static byte[] sha1sum(byte[] data); static String sha1sumHex(byte[] data, Integer startIdxInc, Integer stopIdxExc); static String sha1sumHex(byte[] data); static String sha1sumHex(String data); }
HashUtil { public static String sha1sumHex(byte[] data, Integer startIdxInc, Integer stopIdxExc) throws NoSuchAlgorithmException { String out; byte[] sum; sum = sha1sum(data, startIdxInc, stopIdxExc); out = BitConverters.bytes2hex(sum); return out; }  static byte[] sha1sum(byte[] data, Integer startIdxInc, Integer stopIdxExc); static byte[] sha1sum(String data); static byte[] sha1sum(byte[] data); static String sha1sumHex(byte[] data, Integer startIdxInc, Integer stopIdxExc); static String sha1sumHex(byte[] data); static String sha1sumHex(String data);  }