Hi,
I have an open API in my application that I'd like to provide access key's for. The incoming info will be a user id, resource id and a value to update with. I'd like one API key per resource.
Preferably I would like to be able to validate the authenticity of an incoming request using only the supplied data and not checking against any sort of database (very simple, very fast!)
If I used md5 to generate the API key from the resource ID, user id and a salt it might look something like this ...
authentic_request = md5(user_id + resource_id + salt) == api_key
My question is really one on how paranoid I should be. Would something like the above with just plain old md5 suffice? Another option would be to use openssl generate the key against a pem and then maybe md5 the result to keep it concise, does that sound overly paranoid or even add a layer of security in reality?
Any ideas or even alternataaives gratefully received!
Thanks