mysql - PASSWORD()

Started by
1 comment, last by Leadorn 21 years ago
Hi There is an encryption named password in mysql, one-way encryption. Does anyone know how it works? Cause I need one function to encrypt with, so that I can compare incoming password with password from database. Is there any vulnerabilities with password(), should I use MD5 instead?
Advertisement
from the mySQL documentation:
quote:PASSWORD() encryption is non-reversible. PASSWORD() does not perform password encryption in the same way that Unix passwords are encrypted. See ENCRYPT(). The PASSWORD() function is used by the authentication system in MySQL Server, you should not use it in your own applications. For that purpose, use MD5() or SHA1() instead.


--- krez ([email="krez_AT_optonline_DOT_net"]krez_AT_optonline_DOT_net[/email])
Oki

This topic is closed to new replies.

Advertisement