Earlier quoted context omitted.
There's a fairly trivial way to do it in Django I think (whether it's still safe to send an email with pw in plaintext is still questionable at best): Say a user forgot their password and they click some link to reset their password: Generate the password text, then create an email with that password, send the email, and then store the password, connected to the User object, in the default Django way, which is SHA'd.
The Django builtin functionality is more secure than that. Do not send passwords in email. You should create a token, and mark the account with it, send the token to the user, and if the user sends the token back to you (at the URL, normally), you let him replace his password. The password itself is never communicated back to the user.
Passwords in plain text
101–110 of 116 posts
Re: Passwords in plain text
#102Earlier quoted context omitted.
> as using them is barely above plain text in terms of security these days How so?
Cracking them is so fast these days that they don't offer much in terms of security. For example, take a look at this post: http://www.troyhunt.com/2012/06/our-password-hashing-has-no-... Then note that it was posted two years ago . GPUs surely haven't gotten any slower since then.
Re: Passwords in plain text
#103Re: Passwords in plain text
#104Earlier quoted context omitted.
> as using them is barely above plain text in terms of security these days How so?
See hashcat. :) It is easy to crack those types of hashes these days. Or even just search for the hash in google.
Re: Passwords in plain text
#105Earlier quoted context omitted.
> Using password reset links instead changes very little. Actually it changes a lot. Password reset links are one time only, and they get sent before you change your password. Mailing your password in plaintext after you've just changed it means it's good even if someone gets a hold of it months or years later. That's significantly worse.
Password can be one time password, too. Require user to change their password the first they login is not an advance feature.
Re: Passwords in plain text
#106Anyone from Mozilla, EcmaScript, GnuPG and thelike here? Don't miss your monthly "password reminder" mail...
P.S. Just save ONLY a salted hash. Hash functions are designed to be one-way, so no one but you can re-store your password. EVER.
Re: Passwords in plain text
#107I say just mailman. Anyone from Mozilla, EcmaScript, GnuPG and thelike here? Don't miss your monthly "password reminder" mail... P.S. Just save ONLY a salted hash. Hash functions are designed to be one-way, so no one but you can re-store your password. EVER.
Re: Passwords in plain text
#108I wish websites would actually use client certificate authentication instead of having to play hot potato with secret passwords.
But then, how would you log into e.g. gmail from a cybercoffee in a foreign country? (Assuming you dare do so in spite of the risk of key loggers.)
Re: Passwords in plain text
#109Earlier quoted context omitted.
There's a fairly trivial way to do it in Django I think (whether it's still safe to send an email with pw in plaintext is still questionable at best): Say a user forgot their password and they click some link to reset their password: Generate the password text, then create an email with that password, send the email, and then store the password, connected to the User object, in the default Django way, which is SHA'd.
The Django builtin functionality is more secure than that. Do not send passwords in email. You should create a token, and mark the account with it, send the token to the user, and if the user sends the token back to you (at the URL, normally), you let him replace his password. The password itself is never communicated back to the user.
Re: Passwords in plain text
#110Earlier quoted context omitted.
Something like the Firefox Accounts¹ project? Which has Oauth2 support² in the works. 1: https://wiki.mozilla.org/Identity/Firefox_Accounts 2: https://github.com/mozilla/fxa-oauth-server
FxA is primarily for Firefox's own products and services. Mozilla Persona (confusing name - personas is what they called firefox themes as well) is closer.
The plan is to use Persona for ones FxA:
> One we get the basics down and enable single sign-on for relying Mozilla Services with your Firefox Account, we hope integrate Firefox Accounts with Persona on the Web and Firefox user agents to make logging in everywhere as painless as it should be.