Computes the 128-bit MD5 hash of a string. Returns a 32-character hexadecimal string.
VARCHAR(32)Diperbarui: 13 Jun 2026MD5(str)The string to hash
1 SELECT MD5('hello') AS hash;
MD5 hash of the string 'hello'.
1 SELECT file_name, 2 MD5(CONCAT(file_name, file_size)) AS checksum 3 FROM files;
Generate a checksum for each file.
1 SELECT MD5(content) AS content_hash, COUNT(*) AS copies 2 FROM documents 3 GROUP BY MD5(content) 4 HAVING COUNT(*) > 1;
Find duplicate records based on content.
Sudah paham MD5? Latih langsung di browser
Latihan interaktif, langsung di browser.