Is your feature request related to a problem? Please describe.
I was looking around if we have any go packages to handle password strength validation and I stumbled upon this.
I do like the idea behind this and I have a few suggestions that may come in handy:
- Allow custom error messages or expand the validate function to provide analytical data which can be used to determine error messages outside of the package (the primary idea of this is to allow i18n).
- Allow the validator to be configured with custom character sets or programmatically determine used character sets to support use cases that would require characters outside of the baked-in character sets.
Describe the solution you'd like
My first point should be straightforward on how it could be implemented; something in the lines of returning a struct which outlines the boolean flags used internally (hasReplace, hasLower, ...).
For the second one, I am quite unsure on how (if even possible) to implement as changes to the character sets would affect the entropy and what level would be considered secure (the table in your README).
Is this something you would consider your package to support?
With your insight and if we decide to use this approach for Corteza, I can assist with the implementation.
Is your feature request related to a problem? Please describe.
I was looking around if we have any go packages to handle password strength validation and I stumbled upon this.
I do like the idea behind this and I have a few suggestions that may come in handy:
Describe the solution you'd like
My first point should be straightforward on how it could be implemented; something in the lines of returning a struct which outlines the boolean flags used internally (
hasReplace,hasLower, ...).For the second one, I am quite unsure on how (if even possible) to implement as changes to the character sets would affect the entropy and what level would be considered secure (the table in your README).
Is this something you would consider your package to support?
With your insight and if we decide to use this approach for Corteza, I can assist with the implementation.