This repository was archived by the owner on May 14, 2026. It is now read-only.
verdaccio-htpasswd@10.4.0
·
214 commits
to main
since this release
Minor Changes
-
49ca26d: feat: allow other password hashing algorithms
copied from v6 plugins by @greshilov verdaccio/verdaccio#2072
To avoid a breaking change, the default algorithm is
crypt.Context
The current implementation of the
htpasswdmodule supports multiple hash formats on verify, but onlycrypton sign in.
cryptis an insecure old format, so to improve the security of the newverdacciorelease we introduce the support of multiple hash algorithms on sign in step.New hashing algorithms
The new possible hash algorithms to use are
bcrypt,md5,sha1. You can read more about them here.Two new properties are added to
authsection in the configuration file:algorithmto choose the way you want to hash passwords.roundsis used to determinebcryptcomplexity. So one can improve security according to increasing computational power.
Example of the new
authconfig file section:auth: htpasswd: file: ./htpasswd max_users: 1000 # Hash algorithm, possible options are: "bcrypt", "md5", "sha1", "crypt". algorithm: bcrypt # Rounds number for "bcrypt", will be ignored for other algorithms. rounds: 10