MD5_BINARY
functionsupportedCore SQL functionsReturns a 16-byte BINARY value containing the 128-bit MD5 message digest.
Syntax
MD5_BINARY(<msg>)
Parameters
| Name | Required | Description |
|---|---|---|
msg | required | A string expression, the message to be hashed. The input is limited by the maximum size of the VARCHAR data type, 134217728 bytes (128 MB). For more information, see String & binary data types. |
Returns
Returns a 16-byte BINARY value containing the MD5 message digest.
Usage notes
- Although the MD5* functions were originally developed as cryptographic functions, they are now obsolete for cryptography and should not be used for that purpose. They can be used for other purposes (for example, as “checksum” functions to detect accidental data corruption). If you need to encrypt and decrypt data, use the following functions: ENCRYPT and DECRYPT
- ENCRYPT_RAW and DECRYPT_RAW