HASH v16
The HASH
function uses a user-specified algorithm to return the hash value of a RAW
or CLOB
value. The HASH
function is available in three forms:
Parameters
src
src
specifies the value for which the hash value is generated. You can specify a RAW
, BLOB
, or CLOB
value.
typ
typ
specifies the HASH
function type. EDB Postgres Advanced Server supports the HASH
function types shown in the table.
HASH functions | |
---|---|
HASH_MD4 | CONSTANT INTEGER := 1; |
HASH_MD5 | CONSTANT INTEGER := 2; |
HASH_SH1 | CONSTANT INTEGER := 3; |
Examples
This example uses DBMS_CRYPTO.HASH
to find the md5
hash value of the string, cleartext source
:
- On this page
- Parameters
- Examples