Password Hashing for Windows
Last updated
Was this helpful?
When creating a new Phoenix project, you can add authentication by running:
mix phx.gen.authIf you do this on macOS or Linux, then Phoenix will use bcrypt_elixir. If you do this on a Windows machine, then it will use pbkdf2_elixirinstead. You can find more on the pros and cons of choosing a hash system here.
Petal Pro has been pre-generated with bcrypt_elixir - if you're on a Windows machine, you can switch by applying this recipe. This is much more convenient than trying to compile bcrypt on a Windows machine!
This recipe is available for version 1.8.0 and above.
You can choose to check out the branch or cherry pick it.
git clone https://github.com/petalframework/petal_pro.git
cd petal_pro
git checkout recipes/<version>/win-pass-hashFollow the cherry-pick instructions with the branch recipes/<version>/win-pass-hash.
Last updated
Was this helpful?
Was this helpful?
