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

后端 未结 12 927
夕颜
夕颜 2020-12-09 18:20

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

相关标签:
12条回答
  • 2020-12-09 18:52

    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?

    0 讨论(0)
  • 2020-12-09 18:52

    As mentioned in comments, you might want to look at OpenID. The most secure way to manage passwords is to eliminate them.

    0 讨论(0)
  • 2020-12-09 19:00

    I agree with the top answer and have this to add: every time I receive a signup confirmation email that contains my password I delete the email and strongly consider never using that web service again. To me, it indicates a lack of security & privacy consciousness.

    0 讨论(0)
  • 2020-12-09 19:02

    My rule of thumb would be - if you're OK writing it on a postcard and sending it through the mail, then it's OK for standard Email. I don't think income information would fall in that category for most people.

    As for passwords, if they can't remember them in the first place, they won't be able to find the Email you sent them with the password in it, and it's an admission of storing it in the clear. I would avoid it and give them the means to reset - they will need that anyway.

    0 讨论(0)
  • 2020-12-09 19:02

    The concern is definitely in the sending of the email with the password. If it is not properly encrypted, someone could potentially sniff the packets from the email being sent and recover the password. Also, the person could potentially have a hijacked email account. If it's not a big deal if someone steals the password then you may not have to worry, but otherwise I would NOT send any unencrypted passwords via email.

    Edit: To address your second question, I wouldn't even email that. I would instead send a link so that they can easily see their profile/information when they log in.

    0 讨论(0)
  • 2020-12-09 19:05

    Most company simply do not include Username password combination due to the security of the external email client. Any numbers of users could brute force or guess the password to the email account of another users which would allow the hacker to view the email of your site. Then the hacker could wreak havoc on your site as well

    0 讨论(0)
提交回复
热议问题