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.

 

Link to comment
Share on other sites

  • 2 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.