Digester { public static String sha256(String bytes, Charset charset) { return sha256(bytes.getBytes(charset)); }  static String sha256(String bytes, Charset charset); static String sha256(byte[] bytes); static String sha1(String bytes, Charset charset); static String sha1(byte[] bytes); static String md5(String bytes, Charset charset); static String md5(byte[] bytes); static MessageDigest getDigest(String algorithm);  }
@Test public void sha256() { String hello = Digester.sha256("hello", charset); assertThat(hello, equalTo("2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824")); }