I am building a web service that I want my users to register for before they can use it. I would then give them a registration key.
When they call my service they would pass me the registration key. I would then decrypt the key to validate the user and service.
I tried this using AES for the encryption, but the key was way too large. Is there another way to encrypt that would give me a smaller key that can be passed in the URL.
I want it to be decryptable so to avoid a database lookup.
Thanks
Edit: Sorry I was not passing around the AES key, I meant the encrypted AES value. which was 96 bytes if I counted correctly.