I'm making an app and am using bcrypt to encrypt passwords.
I've no prior knowledge about bcrypt and still don't know much, I know it supposed to be a secure cpu-intensive
encryption.
After implementing it yesterday I noticed my sign up's becoming extreemeelyyy slow, taking about 5-10 seconds to complete. I'd thought it was just my slow computer (running the server) however after inserting a few break points on the server, I noticed it was stopping while hashing the password.
I tuned down the rounds from 15 to 1, and everything started working smoothly.
I also checked the database to see if maybe the password was the same/similar to the input password, it seem's just as random - then again I'm a human and not a brute forcing bot.
My question is, 15 rounds isn't going to cut it unless my computer really is just super slow, and the average server can hash 15 rounds in less than 10 seconds, and 1 is supposedly not secure at all, what is the best amount of rounds to hash?
I'm using bcryptjs
which may not be helping with the speeds - being javascript.