Hi,
Use the PASSWORD() function to encrypt the password.
There are other encryptation functions in MySQL like MD5(), SHA1(),
ENCRYPT(). Have a look at functions you can use in SELECT statement at
the manual.
http://www.mysql.com/doc/en/Miscellaneous_functions.html

On Tue, 2003-02-04 at 19:58, Jianping Zhu wrote:
> 
> I have mysql in a redhat machine. I need to use mysql do user
> authentication to a website.
> I have a table like following.
> 
> +----------+----------+
> | username | passwd   |
> +----------+----------+
> | jianping | jian1830 |
> | chichi   | jian1830 |
> +----------+----------+
> 
> I want the passwd field not to be plain text but encrypted. how can i do
> that?
> 
> Thanks.
> 
> 
> 
> ---------------------------------------------------------------------
> Before posting, please check:
>    http://www.mysql.com/manual.php   (the manual)
>    http://lists.mysql.com/           (the list archive)
> 
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail <[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
> 
-- 
Diana Soares


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to