Set requirements for hashed password

ELK stack 6.6.1 with latest Searchguard version installed.

Is there a way to set specific password requirements for the hash.sh file? For example, the script should check if the password is at least 12 characters long and use special characters? Is this possible or am i out of luck?
Thanks

At the moment you can enforce password rules only via the REST API:

However, it would be easy to extend the hash.sh script by adding a regular expression that checks the password rules, similar to the REST API. The hash.sh script just invokes

com.floragunn.searchguard.tools.Hasher

``

which calculates the BCrypt hash of the password. You could add a regex check right before this line here:

“$BIN_PATH” $JAVA_OPTS -cp “$DIR/…/…/search-guard-ssl/:$DIR/…/:$DIR/…/deps/*:DIR/../../../lib/*" com.floragunn.searchguard.tools.Hasher "@”

``

···

On Wednesday, February 27, 2019 at 2:00:08 AM UTC-8, Victor Nilsson wrote:

ELK stack 6.6.1 with latest Searchguard version installed.

Is there a way to set specific password requirements for the hash.sh file? For example, the script should check if the password is at least 12 characters long and use special characters? Is this possible or am i out of luck?
Thanks