I'm trying to implement a "remember me" feature, following the guidelines provided here: The definitive guide to form-based website authentication, and here: http://fishbowl.pastiche.org/2004/01/19/persistent_login_cookie_best_practice/
It appears that the "cookie token" should be hashed when stored in DB (if an attacker has access to DB, unhashed tokens look like plain login/passwords, allowing to log in on the website).
Looking for a good hashing algorithm, I've found this recommended technique using bcrypt: https://mcmap.net/q/45367/-how-do-you-use-bcrypt-for-hashing-passwords-in-php-duplicate
I've tried it and found that with the amount of rounds proposed (15) leads to a very slow processing time (hash 2,3s + verify 2,3s on an Intel Core 2 Duo E8500 + 4 GB RAM)
I know that hashing algorithms should be relatively slow to hamper attackers, but at that level, it hampers users to use the website :)
Do you think that less rounds (e.g. 7, which drops processing time to 10ms + 10ms) will be enough?