Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Efficiently create tokens that are unique across restarts #48

Closed
hrj opened this issue Jul 8, 2020 · 1 comment
Closed

Efficiently create tokens that are unique across restarts #48

hrj opened this issue Jul 8, 2020 · 1 comment

Comments

@hrj
Copy link
Contributor

hrj commented Jul 8, 2020

One idea is to have an auto-incrementing field in the database table where the token is inserted. Could be the primary id of the table.

Encrypt and Decrypt this field value on the fly when sending the token to the client. A fast symmetric cipher could be used for the purpose. The key for the cipher would have to be persisted somewhere (perhaps it could be specified in the config file), so that it survives restarts.

@hrj
Copy link
Contributor Author

hrj commented Sep 23, 2020

Closed via #52

@hrj hrj closed this as completed Sep 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant