I have a spring webservice api that authenticates users from a properties file. The passwords are stored in bcrypt algorithm so far.
Problem: my api is stateless, thus any basic auth request will force bcrypt authentication to recalculate, causing delays of approx 100ms on each request.
Question: which algorithm is advised to be used for encrypting user passwords (no matter if in properties file or db), that are to be used on every request on a stateless api?
With focus on authentication performance, but not neglecting security.