string-expression
The value to be hashed. This parameter is case sensitive, even in case-insensitive databases.
algorithm
The algorithm to use for the hash. Possible values include: CRC32, MD5, SHA1, SHA1_FIPS, SHA256, SHA256_FIPS. By default,
the MD5 algorithm is used. FIPS-certified algorithms require a separate license.
The following example creates a table called user_info to store information about the users of an application, including their
user ID and password. One row is also inserted into the table. The password is hashed using the HASH function and the SHA256
algorithm. Storing hashed passwords in this way can be useful if you do not want to store passwords in clear text, yet you
have an external application that needs to compare passwords.