Jump to content

Create a secure expiring token with checksum


ctrlbrk

Recommended Posts

Hi guys,

 

Need your expertise again ;)

 

I need to generate a token that will be difficult to reverse engineer to prevent it from being forged.

 

The token will carry some IP address info and some hash info from a file on the system.  It also must carry a current datetime stamp, because the token will expire some minutes after being issued.  All of this data info needs to be embedded into the token and then the token itself needs to be secured via some sort of encryption.  It must then be passed as a URL string.

 

Last, I would like to be able to build in a checksum into the final token string so that the receiving server can quickly determine if the token itself is complete before it looks to decrypt it.

 

1. My source data (IP address info, file hash data, datetime stamp).

2. Encryption/Decryption

3. URL-safe characters.

4. Checksum to quickly determine if complete/valid token.

 

I have my own ideas on how to accomplish this but I could use your feedback.  Please don't be shy with the details :)

 

Thx and hope you guys had a Happy Thanksgiving.

 

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.