devise_token_auth icon indicating copy to clipboard operation
devise_token_auth copied to clipboard

Why BCrypt?

Open diogob opened this issue 2 years ago • 0 comments

From what I could gather from the library code and docs the tokens are generated with a good source of entropy and do have a fixed lifestyle. Taking this into account wouldn't make more sense to use a fast hashing algorithm such as sha-2 ?

This would greatly lower the computational cost without any sacrifice of security. Or am I missing something?

diogob avatar Apr 25 '23 18:04 diogob