Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
How should I store API keys in the backend database in a secure manner? I can't fucking getting my head around and internet is somehow not really a help to find a secure and fast way to store API keys.
It is a requirement that the key identifies the corresponding user in way. We tried to do it with bcrypt and different salts, but that means very poor performance when we have to encrypt each incoming request to check what user corresponds to the cleartext key. My best guess was to use sha512 and a configurable salt on application server side (one for all users to at least have an unknown part in database).
rant
secure api key storage