hi all
i want to convert the user input field to MD5 Algorithm
can anyone help me thx in advance
Printable View
hi all
i want to convert the user input field to MD5 Algorithm
can anyone help me thx in advance
You might try looking for yourself before asking. Most things have been done before and there are tons of examples on the web. If you can't find what you need then that's something else, but you should at least look.
http://www.google.com.au/search?q=md...ient=firefox-a
I founnd thr encryption code i wanted but in php how to convert to vb.net
Code:function phpbb_hash($password)
{
    $itoa64 = './0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
    $random_state = unique_id();
    $random = '';
    $count = 6;
    if (($fh = @fopen('/dev/urandom', 'rb')))
    {
        $random = fread($fh, $count);
        fclose($fh);
    }
    if (strlen($random) < $count)
    {
        $random = '';
        for ($i = 0; $i < $count; $i += 16)
        {
            $random_state = md5(unique_id() . $random_state);
            $random .= pack('H*', md5($random_state));
        }
        $random = substr($random, 0, $count);
    }
    $hash = _hash_crypt_private($password, _hash_gensalt_private($random, $itoa64), $itoa64);
    if (strlen($hash) == 34)
    {
        return $hash;
    }
    return md5($password);
}