Earlier quoted context omitted.
Taking unnecessarily long to handle a lookup request might leave server very vulnerable to DDoS attacks leveraging this "account recovery" option, I think. Even worse, an invalid email would take the longest possible time, every time. And since this is only an email address we are talking about, a global salt + more stretching (like runamok mentioned above) could be secure enough while still providing faster lookups.
Of course, you could protect from the DDoS by maintaining a secondary application server which connects to a slave database. Then the requests for account recovery wouldn't impact the rest of the system. :)
Project Euler Returns
71–80 of 104 posts
Re: Project Euler Returns
#72What is project euler? The "about" page has lots of helpful information about submissions and scoring, but nothing ABOUT what it is!
Re: Project Euler Returns
#73it would be great if PE was open source :)
Anyone interested in creating an open source version? It could have more features - such as running the code online, and more topics - such as non-math challenges.
Re: Project Euler Returns
#74Earlier quoted context omitted.
It's not open source, but https://www.hackerrank.com/ sounds exactly like what you're describing, in case you've been looking for something like that.
There's a number of sites that are not open source that use coding tasks like this and tie them with leaderboards and tie-ins to recruiters. As well as hacckerrank, there is codeeval, and there are some others whose names escape me at the moment. But that doesn't really address a question about putting together an open-source one. There's also at least one similar-to-Euler one -- rosalind.info (like Euler, but bioinf…
Re: Project Euler Returns
#75If Project Euler is trying to make itself less interesting to hackers/less vulnerable by storing less information(email), why don't they consider OAuth for login? I know OAuth has it's own warts, but isn't part of the point to offload the burden of authentication to someone else? Also, feel free to replace OAuth with Mozilla Persona or OpenID. [edit] - s/storing less password/storing less information\(email\)/
I've been keeping this idea close to the chest, mostly because it's something I want to do, but Project Euler could easily become a great training tool, an easy-to-install packaged django application(I mention django for it's nice out-of-the-box admin interfaces, doesn't matter what it is as long as it's easy to manage for admins and users)
Re: Project Euler Returns
#76I should preface this by saying that I love Project Euler--I spent a ton of time there while learning to program. I also am impressed by anyone who volunteers to create something for the community, and invests effort in maintaining it. However, not storing emails, and thereby giving up account recovery with the explanation that it's about security is a shit sandwich. My email is . @gmail.com, a pattern I share with m…
Oh, you've lost the game long before that. Grandma's email chain? Welcome to the database as soon as anyone on that list gets their email compromised. Apologies to all the grandmothers out there who know how to use the BCC field.
Re: Project Euler Returns
#77Earlier quoted context omitted.
I think you are at least slightly overstating how inconvenient this is. I mean, yes, I could wish it was easier. No, this isn't going to stop me from getting back on the site.
And how many answers did you lose? Because I lost a bunch. I'm not overstating anything, I'm honestly frustrated and dispirited because of a high degree of incompetence and bad judgment.
1) had solved a bunch of Project Euler problems, but fewer than 200 (account recovery is still available for those folks), 2) lost/forgot your signon information, and 3) lost/deleted all the code you used to find the answers?
You, sir, are in a very small boat. A frustrating boat, to be sure, but I suspect that virtually none of their users share your fate.
Re: Project Euler Returns
#78Earlier quoted context omitted.
A salted hash would completely eliminate any ability to look up accounts by email address, since you would have to hasn't the email against the salt for every account in the database until you landed on the correct one.
You could have one of two approaches. 1. Don't use a per user salt and just use a global salt. You can counteract this decrease (a bit) in security by increasing the key stretching part of your hashing algorithm. or 2. Require the user to submit their email address AND username and store the salt in the user's record. I agree with someone up there that email address != password. It's refreshing to see someone that gi…
Re: Project Euler Returns
#79Earlier quoted context omitted.
A salted hash would completely eliminate any ability to look up accounts by email address, since you would have to hasn't the email against the salt for every account in the database until you landed on the correct one.
You could have one of two approaches. 1. Don't use a per user salt and just use a global salt. You can counteract this decrease (a bit) in security by increasing the key stretching part of your hashing algorithm. or 2. Require the user to submit their email address AND username and store the salt in the user's record. I agree with someone up there that email address != password. It's refreshing to see someone that gi…
Re: Project Euler Returns
#80What is project euler? The "about" page has lots of helpful information about submissions and scoring, but nothing ABOUT what it is!
It's a lot of fun; the math involved can get pretty advanced on some of the problems.