public static function generateSaltedMd5($clearString)
    {
        $salt = substr(md5(rand() . Utility\Algorithms::generateRandomString(23)), 0, rand(6, 10));
        return (md5(md5($clearString) . $salt) . ',' . $salt);
    }
public static function generateSaltedMd5($clearString)
    {
        $salt = substr(md5(rand() . Utility\Algorithms::generateRandomString(23)), 0, rand(6, 10));
        return (md5(md5($clearString) . $salt) . ',' . $salt);
    }
public static function generateSaltedMd5 ( $ clearString ) { $ salt = substr ( md5 ( rand ( ) . Utility \ Algorithms :: generateRandomString ( 23 ) ) , 0 , rand ( 6 , 10 ) ) ; return ( md5 ( md5 ( $ clearString ) . $ salt ) . ',' . $ salt ) ; }
Generates a salted md5 hash over the given string.

@param string $clearString The unencrypted string which is the subject to be hashed
@return string Salted hash and the salt, separated by a comma ","
Generates a salted md5 hash over the given string .