Computes a cryptographic hash of UTF-8 text and returns both the hex and base64 digest.
algorithm is one of md5, sha1, sha256 (default), sha512. Input is treated as UTF-8 text. Computed locally, so the digest is exact.
The text to hash (UTF-8).
Hash algorithm. Defaults to sha256.