What's faster/better to use: the MySQL or PHP md5 function?

后端 未结 5 1484
[愿得一人]
[愿得一人] 2021-02-19 13:44

I checked the passwords for the users against the DB.

What is faster, the MySQL MD5 function

... pwd = MD5(\'.$pwd.\')

5条回答
  •  忘掉有多难
    2021-02-19 14:03

    I don't know which is faster, but if you do it in PHP you avoid the possibility of SQL injection.

提交回复
热议问题