Jump to content

MySQL PASSWORD() for encryption


softarrow

Recommended Posts

md5() should be used instead of password() to encrypt data, from mysql documentation:

 

Note: 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. Also see RFC 2195 for more information about handling passwords and authentication securely in your applications.

Thanks for your reply.

I have read MYSQL documentation and they say:

  The encryption and compression functions return binary strings. For many of these functions, the result might contain arbitrary byte values. If you want to store these results, use a BLOB  column rather than a CHAR or VARCHAR column to avoid potential problems with trailing space removal that would change data values.

 

BLOB column will take unnecessary storage space in database, is there any other option to use CAHR or VARCHAR field to store the data.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.