@Test public void success_4() { String seed = "ab4195d4123f0594e5341c45134c5938cc5913d34aa951234c5938cc2a6eb487"; byte[] result3 = Hashes.hash(HashAlgorithm.SHA_512, HexEncoder.getBytes(seed)); String result3Str = HexEncoder.getString(result3); assertThat(result3Str, is("fb51bcb380697c0fd1e1817b4faefff56d780f2609169d69aa7db8e7ae4bc830c2c2b0487bbe69be5f8ce1e3c52abd1ac81e99af98bab15f73b18469376dd375")); }
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);  }