1

My boss wants to not hash any of the user passwords. He wants to be able to view all the passwords and resend the forgotten ones.

Is this a good practice?

Also - how can I turn off the password hashing in CakePHP 1.3 Auth?

user2192677
  • 327
  • 1
  • 5
  • 12

2 Answers2

2

Don't store plain text passwords anywhere. If there is any form of security breach the passwords that your user probably uses elsewhere will be easiliy accesuible. You should encrypt and add a salt, or hash.

Your boss wants to know everyones password, I couldn't care less : my password is secret. Why not post their password up here and see how he/she likes unknown people knowing their secret password.

Don't resend forgotten passwords, send out a link where you can change password.

This is basic security 101.

Community
  • 1
  • 1
NimChimpsky
  • 46,453
  • 60
  • 198
  • 311
1

Of course not, this is the very bad practices. if some one forget his password, the password should be reset. And the application should have the ability to do so. ability to retrieve password is a big risk and no one can have responsibility of his password.

aymankoo
  • 653
  • 6
  • 12
  • 1
    you can send password by excell – aymankoo Apr 09 '13 at 09:57
  • why is it a big risk? – user2192677 Apr 09 '13 at 09:59
  • 1
    Because lots of users will use the same password for different services. Stupid, I know. Then, when (not if) some bad guy gets hold of your database with all the passwords in clear text, they can impose as your users on lots of other web sites and services. Probably even including their mail and bank accounts. – Christopher Creutzig Apr 09 '13 at 10:10