Page 1 of 1

Encrypt function in MySQL not working properly.

PostPosted: 21. August 2006 05:47
by Gen
I'm using XammpLite and in my database when I try to use the encrypt on a column it has no affect and just wipes the data from that field making it blank.

Is this some sort of glitch or is not the encrypt function supported in the XammpLite package?

PostPosted: 21. August 2006 06:21
by Wiedmann
or is not the encrypt function supported in the XammpLite package?

Ups, there is a manual:
http://dev.mysql.com/doc/refman/5.0/en/encryption-functions.html#function_encrypt wrote:If crypt() is not available on your system (as is the case with Windows), ENCRYPT() always returns NULL.

PostPosted: 21. August 2006 13:49
by Gen
Hm, crypt() works in PHP though so I assumed encrypt would work but I guess that's not the case? Thanks for the answer.

PostPosted: 21. August 2006 16:43
by Wiedmann
crypt() works in PHP though

The crypt() function in PHP is not the same as ENCRYPT() in MySQL or crypt(1) on *nix

PostPosted: 21. August 2006 18:19
by Gen
I see, thanks for the fast answers.