In a REST-based system, there are options for "encrypting" a resource identifier.
For instance:
/client/2
will be available in
/client/SOMEHASHKEY
I think:
1 - have database tables that track the resource identifier, and also match the HASH and view it for each request. This is obviously quite difficult to implement, and to increase the serverβs performance quite a bit.
2 - Have some kind of internal encryption algorithm that creates a hash, for example, based on the date the resources were created, the resource identifier and base64 (obviously not optimal, but you get the point)
So, are there any good methods for such scenarios? What would you recommend?
Thank you very much
source share