@Test public void success_3() { String input = "lkadjlkfalkgnlaksdnfkladf"; String input2 = "aklkl5028359gq94521nef8wdfank3l45134"; String input3 = "9cv0we90t138tjapdfq84t1ndgowe9r12b51bsfdagldafk"; byte[] output = Hashes.hash(HashAlgorithm.KECCAK_512, input.getBytes()); byte[] output2 = Hashes.hash(HashAlgorithm.KECCAK_512, input2.getBytes()); byte[] output3 = Hashes.hash(HashAlgorithm.KECCAK_512, input3.getBytes()); assertThat(HexEncoder.getString(output), is("1f391471f9ad9c71a871ff3deb291d302351abd1c13a7aac09f465d7708fb1d5900ca2762064e89f97a0149a495c2657ff239fb5872d0a14cef25f130bc30cb6")); assertThat(HexEncoder.getString(output2), is("662d8fe0adf56b15f082f53ca28175176f39d244f3f84b3df96102edbfacf03721cd9ba9d4278ae69af650c9ef228ca98445b19dd23702cf1b6f52b9780f2eb3")); assertThat(HexEncoder.getString(output3), is("4dea7f98af31bbadc021fd9179830b23e29304b96b1f676ee52d06eaf1b6037a4203de65426b137456730896917e48e608014f29abd36ed53f4e85430f39fd2b")); }
public static byte[] hash(HashAlgorithm algorithm, byte[]... inputs) { return hash(algorithm, algorithm.getDefaultBitLength() / 8, inputs); }
Hashes { public static byte[] hash(HashAlgorithm algorithm, byte[]... inputs) { return hash(algorithm, algorithm.getDefaultBitLength() / 8, inputs); } }
Hashes { public static byte[] hash(HashAlgorithm algorithm, byte[]... inputs) { return hash(algorithm, algorithm.getDefaultBitLength() / 8, inputs); }  }
Hashes { public static byte[] hash(HashAlgorithm algorithm, byte[]... inputs) { return hash(algorithm, algorithm.getDefaultBitLength() / 8, inputs); }  static byte[] hash(HashAlgorithm algorithm, byte[]... inputs); static byte[] hash(HashAlgorithm algorithm, int outputByteLength, byte[]... inputs); }
Hashes { public static byte[] hash(HashAlgorithm algorithm, byte[]... inputs) { return hash(algorithm, algorithm.getDefaultBitLength() / 8, inputs); }  static byte[] hash(HashAlgorithm algorithm, byte[]... inputs); static byte[] hash(HashAlgorithm algorithm, int outputByteLength, byte[]... inputs);  }