Skip to content

MD5

  • str: This parameter refers to the string that is to be converted into a checksum.

In SQL, you can use the MD5() function to hash a string. Here’s an example with MySQL:

SELECT MD5('Hello World');

Below is the output that you will receive when you execute the above SQL query:

'3e25960a79dbc69b674cd4ec67a72c62'

When you run this SQL statement, the MD5() function hashes the string ‘Hello World’, resulting in ‘3e25960a79dbc69b674cd4ec67a72c62’. An MD5 hash is a 32-character string.