LogoLogo
v2.2.0
v2.2.0
  • 🌸What is Petal Pro?
  • πŸ’‘Changelog
  • ⏫Upgrade guide
  • Guides
    • πŸš€Creating a web app from start to finish
    • 🌎Deploy to Fly.io
    • πŸ’³Adding a subscription
    • πŸ”’Creating Your Own API
    • πŸ”ŒContent Editor - adding your own plug-in
  • πŸ‘©β€πŸ³Recipes
    • πŸ’How to apply a recipe with git cherry pick
    • #️⃣UUIDs
    • ✍️First/Last name
    • πŸ—ΊοΈGoogle Maps
    • Password Hashing for Windows
  • Fundamentals
    • πŸ’ΏInstallation
    • πŸ“‚Folder structure
    • πŸ—ƒοΈIncluded Pages
    • πŸ˜€Users & Authentication
    • 🏒Organizations & Multitenancy
    • πŸ’³Stripe billing
    • Blog/CMS
    • πŸ””User Notifications
    • 🧊Components
    • ⬛Dark mode
    • 🎨Branding
    • 🌱Seeding
    • πŸ“„Layouts & Menus
    • πŸ–ΌοΈImage uploads
    • πŸ‘₯Impersonation
    • πŸ› οΈBackground Tasks and Jobs
    • πŸ”§Util & Helpers
    • πŸ“§Emails
    • πŸͺJavascript Hooks
    • πŸ“šExtra Hex Libraries
    • πŸ—οΈGenerators
    • πŸ—£οΈTranslations
    • πŸ–οΈContributing
    • πŸ›«Deployment
    • πŸ›‘οΈTesting
    • πŸ”’REST API
Powered by GitBook
On this page

Was this helpful?

  1. Recipes

Password Hashing for Windows

PreviousGoogle MapsNextInstallation

Last updated 3 months ago

Was this helpful?

When creating a new Phoenix project, you can add authentication by running:

mix phx.gen.auth

If 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 .

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!

How to use

This recipe is available for version 1.8.0 and above.

New projects

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-hash

Cherry pick

Follow the with the branch recipes/<version>/win-pass-hash.

πŸ‘©β€πŸ³
here
cherry-pick instructions