Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9110281
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T03:13:59+00:00 2026-06-17T03:13:59+00:00

in registration operation, there is a password crypt which as i understand can’t parallelized

  • 0

in registration operation, there is a password crypt which as i understand can’t parallelized since if it makes an operation of a key derivation (PBKDF2 for example), then it needs the previous value, then i guess it is a linear operation?

Making this process slow, is benefic for a user, since his password will be stronger for bruteforce for example, but there is another problem: DOS attack! if each operation of registration takes 1 second, then using a load balancer like NGinx will handle 8 simultanuous registration operation every second, which blocks the application? and if we add other operations, say: 2 seconds, then the application is not good?

So, any suggestions? using Tornado will not solve the problem since Tornado -as i understand- makes asynchronous operations in I/O operations…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T03:14:00+00:00Added an answer on June 17, 2026 at 3:14 am

    Key stretching functions like PBKDF2 allow you to control the time it takes to hash the password by adjusting the iteration count (or other equivalent parameters for other functions). You’re correct in observing that there’s a tradeoff here between making passwords hard to crack by brute force and avoiding DoS attacks. You’ll need to choose an iteration count to balance these two considerations.

    Do keep in mind that modern CPUs can calculate millions of hash iterations per second. Even if you use an iteration count of, say, only 1000, that still makes cracking the passwords 1000 times harder than not iterating the hash at all, even though hashing a single password with 1000 iterations only takes about a millisecond.

    There are also other ways in which you can avoid or mitigate login DoS attacks. For example, you could implement IP-based throttling, so that each IP address can only make some limited number of login attempts per minute. Of course, distributed DoS attacks can get around that, but it’s still a hurdle for any potential attacker to overcome.

    Also, if you implement login anti-CSRF tokens (and you should), they’ll also protect you against certain simple types of login DDoS attacks by requiring an extra round trip to fetch the token before any login attempt can be made. CAPTCHAs can be another useful way to deal with login DoS attempts. Finally, you may want to restrict all login requests to a separate set of servers and/or processes, with appropriate resource limits, so that even a successful DoS attack on the login form won’t take down the rest of your site.

    If you really wanted to get fancy, you could even require the client to submit a cryptographic proof of work more or less equivalent to the effort of hashing the password. For example, you could send the client a random string and require it to send back a suffix to that string such that the random string plus the suffix hash to a value ending with n zero bits, where 2n is approximately your iteration count. There exist JavaScript crypto libraries that you could use to implement the client side of such a system.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a course registration website. A user can enroll in a class,
I'm creating a registration page where the user can register several other people. I've
I want to disable undo registration for an operation on an NSManagedObject but it
In registration form of my web application I have a password field. Now when
My registration page and login form is working fine. If any member register and
I have a registration page with the following code below: in the views: def
I am using django-registration and would like to have a different page for failed
I am doing a registration page coding. For that i have so many fields
I implemented the Facebook registration on my website. Everything works fine except that suddenly
In my registration webpage,5 textboxes with required and regular expression validators.click register button means

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.