|
Posted by Matthew on 11/23/07 18:23
Rik Wasmus emailed this:
> On Fri, 23 Nov 2007 16:47:23 +0100, Acrobatic <jbnunn@gmail.com> wrote:
>
>> I'm trying to store user passwords in a MySQL database. I learned the
>> hard way that using MySQL "DECODE" and "ENCODE" doesn't seem to work
>> cross-platform, but if I encrypt on the server side with PHP's md5
>> function, will it work cross-platform (or cross-processor?)
>
> md5 should even be cross-language/script. A Perl md5 = a PHP md5 = a
> MySQL md5 = a JAVA md5.
Yes. MD5 is a standard hash function, unless all software implementations
of MD5 provide exactly the same result, its use is pretty much pointless.
The only reason why one version of MD5 could give a different result from
another is if one of them has not implemented the algorithm correctly, in
which case it is not an implementation of MD5 at all but is a flawed
variation of it.
More Info.:
http://en.wikipedia.org/wiki/Md5
[Back to original message]
|