Skip to content
Daniel Wirtz edited this page Aug 18, 2014 · 13 revisions

Comparing bcryptjs with bcrypt

Using 8 rounds with salt=$2a$08$lleL.0uQ3kwWaqZb4vnHe.

bcrypt sync: 19ms $2a$08$lleL.0uQ3kwWaqZb4vnHe.d5rSfI5.pzbjsdLHG7pqzwlRyv32yKC
bcrypt.js sync: 57ms $2a$08$lleL.0uQ3kwWaqZb4vnHe.d5rSfI5.pzbjsdLHG7pqzwlRyv32yKC
bcrypt async: 20ms $2a$08$lleL.0uQ3kwWaqZb4vnHe.d5rSfI5.pzbjsdLHG7pqzwlRyv32yKC
bcrypt.js async: 53ms $2a$08$lleL.0uQ3kwWaqZb4vnHe.d5rSfI5.pzbjsdLHG7pqzwlRyv32yKC

Using 9 rounds with salt=$2a$09$3i1h9nfXLYm9Vsdu1rsv4e

bcrypt sync: 39ms $2a$09$3i1h9nfXLYm9Vsdu1rsv4eTHztQMXd.AtBg9HAlZ9jcXqIO1z8qUG
bcrypt.js sync: 105ms $2a$09$3i1h9nfXLYm9Vsdu1rsv4eTHztQMXd.AtBg9HAlZ9jcXqIO1z8qUG
bcrypt async: 39ms $2a$09$3i1h9nfXLYm9Vsdu1rsv4eTHztQMXd.AtBg9HAlZ9jcXqIO1z8qUG
bcrypt.js async: 105ms $2a$09$3i1h9nfXLYm9Vsdu1rsv4eTHztQMXd.AtBg9HAlZ9jcXqIO1z8qUG

Using 10 rounds with salt=$2a$10$w4lAA9g64NtaUZRNSImRFO

bcrypt sync: 78ms $2a$10$w4lAA9g64NtaUZRNSImRFOaS3mnW0gdTwnZaGb4ODUbdCY3xY46uC
bcrypt.js sync: 216ms $2a$10$w4lAA9g64NtaUZRNSImRFOaS3mnW0gdTwnZaGb4ODUbdCY3xY46uC
bcrypt async: 78ms $2a$10$w4lAA9g64NtaUZRNSImRFOaS3mnW0gdTwnZaGb4ODUbdCY3xY46uC
bcrypt.js async: 216ms $2a$10$w4lAA9g64NtaUZRNSImRFOaS3mnW0gdTwnZaGb4ODUbdCY3xY46uC

Using 11 rounds with salt=$2a$11$RdsRvRcY.vNHZOP39zujGe

bcrypt sync: 159ms $2a$11$RdsRvRcY.vNHZOP39zujGeePOtSbUPoAsFj2A5D9FwQBY07tfNJIa
bcrypt.js sync: 425ms $2a$11$RdsRvRcY.vNHZOP39zujGeePOtSbUPoAsFj2A5D9FwQBY07tfNJIa
bcrypt async: 158ms $2a$11$RdsRvRcY.vNHZOP39zujGeePOtSbUPoAsFj2A5D9FwQBY07tfNJIa
bcrypt.js async: 427ms $2a$11$RdsRvRcY.vNHZOP39zujGeePOtSbUPoAsFj2A5D9FwQBY07tfNJIa

Using 12 rounds with salt=$2a$12$869sPoA.riMZks.FuJQL5.

bcrypt sync: 317ms $2a$12$869sPoA.riMZks.FuJQL5.J/KAWNwC.MuU96VpcsN7zSqPsXP7RDG
bcrypt.js sync: 852ms $2a$12$869sPoA.riMZks.FuJQL5.J/KAWNwC.MuU96VpcsN7zSqPsXP7RDG
bcrypt async: 314ms $2a$12$869sPoA.riMZks.FuJQL5.J/KAWNwC.MuU96VpcsN7zSqPsXP7RDG
bcrypt.js async: 847ms $2a$12$869sPoA.riMZks.FuJQL5.J/KAWNwC.MuU96VpcsN7zSqPsXP7RDG

Using 13 rounds with salt=$2a$13$YFXHE6q2gpf//fNMvtvQZ.

bcrypt sync: 625ms $2a$13$YFXHE6q2gpf//fNMvtvQZ.g6Q6rMA0dxEkYEqCJEDQlVoIWJRUjja
bcrypt.js sync: 1697ms $2a$13$YFXHE6q2gpf//fNMvtvQZ.g6Q6rMA0dxEkYEqCJEDQlVoIWJRUjja
bcrypt async: 627ms $2a$13$YFXHE6q2gpf//fNMvtvQZ.g6Q6rMA0dxEkYEqCJEDQlVoIWJRUjja
bcrypt.js async: 1696ms $2a$13$YFXHE6q2gpf//fNMvtvQZ.g6Q6rMA0dxEkYEqCJEDQlVoIWJRUjja

Using 14 rounds with salt=$2a$14$gfE9tnzVIZ7iEFYV1DTrCO

bcrypt sync: 1267ms $2a$14$gfE9tnzVIZ7iEFYV1DTrCOKaVzsp8vovVyI1kfVnJbfJm0R/d2LzK
bcrypt.js sync: 3411ms $2a$14$gfE9tnzVIZ7iEFYV1DTrCOKaVzsp8vovVyI1kfVnJbfJm0R/d2LzK
bcrypt async: 1251ms $2a$14$gfE9tnzVIZ7iEFYV1DTrCOKaVzsp8vovVyI1kfVnJbfJm0R/d2LzK
bcrypt.js async: 3409ms $2a$14$gfE9tnzVIZ7iEFYV1DTrCOKaVzsp8vovVyI1kfVnJbfJm0R/d2LzK

Using 15 rounds with salt=$2a$15$o5969yBLIc61SG8KH9g34e

bcrypt sync: 2509ms $2a$15$o5969yBLIc61SG8KH9g34eILp4DBFvblF/hHmVQ6RmSTCVCSBhVWe
bcrypt.js sync: 6874ms $2a$15$o5969yBLIc61SG8KH9g34eILp4DBFvblF/hHmVQ6RmSTCVCSBhVWe
bcrypt async: 2505ms $2a$15$o5969yBLIc61SG8KH9g34eILp4DBFvblF/hHmVQ6RmSTCVCSBhVWe
bcrypt.js async: 6806ms $2a$15$o5969yBLIc61SG8KH9g34eILp4DBFvblF/hHmVQ6RmSTCVCSBhVWe

Clone this wiki locally