riverrun / bcrypt_elixir

Bcrypt password hashing for Elixir
Other
162 stars 26 forks source link

Set unusable password #38

Open spapas opened 2 years ago

spapas commented 2 years ago

Hello! Is there a string I could save on my password field so as to have an unusable password ? I've got some users that are able to login through a different method and I don't want them to be able to login with a password.

brettinternet commented 1 year ago

How about a random strong password? Would this work?

:crypto.strong_rand_bytes(32)
|>  Bcrypt.hash_pwd_salt()