Create a bcrypt hash on commandline

Its easy to create a bcrypt hash  on commandline with this command:

Just replace the Placeholder USER and PASSWORD with the corresponding values.

The Result should be something like that:

The part before “:” is the username. The rest is the bcrypt password hash. The -C parameter specifies the computing time for the bcrypt algorithm. The higher the value the better is the security but also the runtime.

More information about “Create bcrypt hash “

To get an explanation about all parameters and further information, just type htpasswd -h into the shell and hit enter.

Leave a Reply

Your email address will not be published. Required fields are marked *

 

This site uses Akismet to reduce spam. Learn how your comment data is processed.