sending username and password through email after user registration in web application

TopCoder picture TopCoder · Jul 1, 2009 · Viewed 30.4k times · Source

What is your opinion on sending the username and password to their email address when they register on our website..this way if they forget the password in the future, they can look it up in their email...also we wont have to implent the forget/reset password scenario (we are close to release)..

is this approach safe enough?

  1. My second question is that basically on our site, the user fills out certain forms and enter some information like their name, address, phone number, income information and such personal information..at the end, when they submit the application, we are thinking of emailing them a summary of all this information like their name, address etc so that they have it for their records..

is this ok..safe enough..what are the concerns

Answer

Noah Medling picture Noah Medling · Jul 1, 2009

Never send a password or other sensitive information in the clear. That includes e-mail. You should also be storing as little of this as possible in a recoverable format. Unencrypted communication, especially e-mail, is easily tampered with, and you don't want the wrong people getting at passwords.

If possible:

  • Store your passwords in a salted hash, so the original text is unrecoverable, and thus unbreakable by anything short of a brute force attack. If the user forgets his/her password, make them reset it and send a temporary password (which they are required to change upon login) or a confirmation link (which, again, prompts for a new password) via e-mail.

  • Never send anything sensitive via e-mail; if the user needs information, make them go to your site to get it. You are using HTTPS, right?