Its easy to create a bcrypt hash on commandline with this command:
$> htpasswd -nbBC 10 USER PASSWORD
Just replace the Placeholder USER and PASSWORD with the corresponding values.
The Result should be something like that:
USER:$2y$10$gfPbhclOrdjmMLEXSc5CTOWP5aBfjl59hhGvjp/qWXf1FfbQKb5ca
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.
Immer wieder nett bei der Suche auf deinem Blog zu landen. 😉 Viele Grüße!
Sehr schön! Liebe Grüße! 😀
Which package (rpm/dkpg) could we find htpasswd in?
This should be apache2-utils(https://manpages.debian.org/jessie/apache2-utils/index.html) which can be installed like as described here https://it-explain.com/how-to-install-htpasswd-utility-in-linux/.