Skip to content

Provide configuration for token hashing algorithm #560

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

Closed
Aetherus opened this issue Mar 4, 2016 · 1 comment
Closed

Provide configuration for token hashing algorithm #560

Aetherus opened this issue Mar 4, 2016 · 1 comment

Comments

@Aetherus
Copy link

Aetherus commented Mar 4, 2016

Since basically access tokens are generated per request, I think maybe BCrypt is not the best choice for token hashing because it is intentionally designed to be slow. Maybe salted MD5 or SHA1 is good enough for this situation.

I'm not sure if it is a good idea but I think an AES encrypted token which contains all or some info about the current user is also feasible, because it can reduce database accesses.

@zachfeldman
Copy link
Contributor

@Aetherus nobody else commented saying this was important in 1.5 years or so, so I'm going to close this now. But good day to you!

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

2 participants