On Wed, 2001-10-17 at 20:52, Charlie Chrisman wrote:
> what is the seed of the crypt of the password when using mysql
> authentication?  basically i want to write a quick, small script that will
> allow users to change their password.  thats all...

it doesn't use the mysql crypt/password functions. 
It uses the standard (as of now) unix crypt() function.
Read through the vpasswd() function. You can find the
code which creates the password. It's standard stuff.

You could always exec the vpasswd command. Or link in
a program that calls the vpasswd() api. Or copy the
code from the library and paste it into your program.

Ken Jones


Reply via email to