Oren Rose
Jan 18, 2024

--

Thanks for the read. I have a question regarding the "The algorithm behind an API key system" - Why do you need the salt for? Seems that if you generate the random api-key, and not the user, you can guarantee strong enough entropy. Also, I didn't understand - is it a unique salt for each api-key? how do you retrieve it? all the client has is the secret, you don't know the salt at the time of the validation

--

--

Oren Rose
Oren Rose

Written by Oren Rose

I’m a back-end developer, Golang enthusiastic and Clean Architecture zealous

Responses (1)