@Test public void toHashedHexStringSHA1() throws Exception { Hasher hasher = new Hasher(Hasher.Algorithm.SHA1); String sample1 = hasher.toHashedHexString(SHA1_SAMPLE1); Assert.assertEquals(SHA1_SAMPLE1_HASH, sample1); String sample2 = hasher.toHashedHexString(SHA1_SAMPLE2); Assert.assertEquals(SHA1_SAMPLE2_HASH, sample2); String sample3 = hasher.toHashedHexString(SHA1_SAMPLE3); Assert.assertEquals(SHA1_SAMPLE3_HASH, sample3); Assert.assertEquals(40, sample3.length()); }
public String toHashedHexString(String string0) throws NoSuchAlgorithmException { return this.toHashedHexString(StringUtil.getAsciiBytes(string0)); }
Hasher { public String toHashedHexString(String string0) throws NoSuchAlgorithmException { return this.toHashedHexString(StringUtil.getAsciiBytes(string0)); } }
Hasher { public String toHashedHexString(String string0) throws NoSuchAlgorithmException { return this.toHashedHexString(StringUtil.getAsciiBytes(string0)); } Hasher();  Hasher(Algorithm algorithm); }
Hasher { public String toHashedHexString(String string0) throws NoSuchAlgorithmException { return this.toHashedHexString(StringUtil.getAsciiBytes(string0)); } Hasher();  Hasher(Algorithm algorithm); String toHashedHexString(String string0); String toHashedHexString(byte[] bytes); String toHashedBase64String(String string0); String toHashedBase64String(byte[] bytes); byte[] toHashedBytes(byte[] bytes); }
Hasher { public String toHashedHexString(String string0) throws NoSuchAlgorithmException { return this.toHashedHexString(StringUtil.getAsciiBytes(string0)); } Hasher();  Hasher(Algorithm algorithm); String toHashedHexString(String string0); String toHashedHexString(byte[] bytes); String toHashedBase64String(String string0); String toHashedBase64String(byte[] bytes); byte[] toHashedBytes(byte[] bytes);  }