MD5(value)
Argument | Required/ Optional | Description |
---|---|---|
value
| Required | String or Binary datatype. Value for which you want to calculate checksum. The case of the input value affects the return value. For example, MD5(informatica) and MD5(Informatica) return different values. |
Hi Team,
Can you please explain why we need to pass string/binary data type to generate MD5.
Hi Ganesh Motamarri,
We've reached out to our development team regarding your query. They confirmed that the MD5 function is supposed to work only on string and binary types. (The Java libraries for MD5 support only strings and byte arrays.) For other data types, you can use the TO_CHAR function to convert your data to a string and then use MD5.