Is the string md5?

Is this reliable?

PHP Code:

function isValidMd5($md5 =”)
{
    return preg_match(‘/^[a-f0-9]{32}$/’, $md5);
}
echo isValidMd5(‘5d41402abc4b2a76b9719d911017c592’); 

Original post by English Breakfast Tea

Leave a Reply