class Sha256Utils {

  public static byte[] getBytes(CharSequence str) {
    try {
      return str.toString().getBytes("utf8");
    } catch (final UnsupportedEncodingException ex) {
      throw new IllegalStateException(ex);
    }
  }

}