We need to use additinal localized dictionaris for security reasons.
To achieve the above without changing the default behavior, I've added no_embedded_dict build tag.
If this build tag is set, default dictionaries are loaded from local json file specified by ZXCVBN_DEFAULT_DICTIONARIES_JSON env.
e.g.
cd /path/to/some_app
go build -tags=no_embedded_dict
ZXCVBN_DEFAULT_DICTIONARIES_JSON=data/dict.json ./some_app
Hi.
We need to use additinal localized dictionaris for security reasons. To achieve the above without changing the default behavior, I've added
no_embedded_dict
build tag.If this build tag is set, default dictionaries are loaded from local json file specified by
ZXCVBN_DEFAULT_DICTIONARIES_JSON
env.e.g.
Would you accept this PR?