Welcome! Log In Create A New Profile

Advanced

Re: bcrypt

All files from this thread

File Name File Size   Posted by Date  
image001.png 12.4 KB open | download Dwight Marzolf 06/22/2017 Read message
Maxim Dounin
June 24, 2017 09:02AM
Hello!

On Fri, Jun 23, 2017 at 09:37:27PM +0000, Lukas Tribus wrote:

> > One of the bcrypt scheme main properties is that it allows to
> > control number of rounds, and thus control hashing speed.  With
> > low number of rounds it is reasonably fast.  For example, with 2^5
> > rounds (default used by htpasswd) it takes about 4 milliseconds
> > here on a test box:
>
> Just trying to wrap my head around this: if we have 100 request per
> second of this, we block the event loop for 400 milliseconds every
> 1000 milliseconds, is that a correct understanding?

Not really. It means that you block the event loop for 4 milliseconds
100 times per second. Or: you are able to handle no more than 250
requests per second on a single core / using a single nginx worker
process.

This may or may not be ok for a particular use case, but it's
certanly comparable to phk's md5-based scheme numbers (aka "$1$",
aka "$apr1$": 1.5 milliseconds per request), and much faster than
sha256 / sha512 crypt schemes (24 and 75 milliseconds respectively
with the default number of rounds).

--
Maxim Dounin
http://nginx.org/
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

bcrypt Attachments

Dwight Marzolf June 22, 2017 06:28PM

Re: bcrypt

Maxim Dounin June 23, 2017 09:02AM

AW: bcrypt

Lukas Tribus June 23, 2017 09:26AM

Re: bcrypt

Maxim Dounin June 23, 2017 10:32AM

AW: bcrypt

Lukas Tribus June 23, 2017 05:38PM

Re: bcrypt

Maxim Dounin June 24, 2017 09:02AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 206
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready