code: public String toHashedBase64String(byte[] bytes) throws NoSuchAlgorithmException {
          byte[] hashedBytes = toHashedBytes(bytes);
          return Base64Codec.encode(hashedBytes);
          //return StringUtil.getAsciiString(toHashedBase64Bytes(bytes));
      }
docs: Hashes the input bytes into a Base-64 encoded hashed String.
  <ul>
  <li>MD5 - hash is always 24 char base-64
  <li>SHA1 - hash is always 28 char base-64
  <li>SHA256 - hash is always 44 char base-64
  <li>SHA512 - hash is always 88 char base-64
  </ul>
  @param bytes The bytes to hash
  @return The Base-64 encoded hashed String
  @throws NoSuchAlgorithmException