Comments (2)
This is another feature I wanted to support in nbvcxz.
For nbvcxz, each "match" has to implement this interface: https://github.com/GoSimpleLLC/nbvcxz/blob/master/src/main/java/me/gosimple/nbvcxz/matching/match/Match.java
and each "matcher" has to implement this one: https://github.com/GoSimpleLLC/nbvcxz/blob/master/src/main/java/me/gosimple/nbvcxz/matching/PasswordMatcher.java
So anyone can pull in nbvcxz and implement a custom matcher / match type that does whatever specific thing I didn't think of, and calculates entropy whatever way the user makes it work. They just need to use the configuration to specify that custom matcher should also be used, as by default we only run with the matchers provided with nbvcxz.
I specifically didn't make it easy to do things like a "min length", but it is still possible to do if they wanted to. You could just specify a "MinLengthMatcher" that will match to whole passwords if they are < some length, and a corresponding "MinLengthMatch" that calculates 0 (or some really low) entropy value.
After typing all this out, I see you already have a PR that you have done a good bit of this work. So likely this info is unnecessary =).
from zxcvbn.
Hey thanks for the insides anyway :)
Here it will be fairly easy to use custom matcher because everybody could just add more matchers in an array :D
In a perferct wolrd i would like to let the users use the custom matcher without adding a scoring to their matchers. This way they could add feedback for the password without changing the scoring but this seems to be a bit difficult.
When i have time again, i will probably fix the types in my PR and merge it.
from zxcvbn.
Related Issues (20)
- Change return value of feedback.warning when there is no warning given HOT 8
- Incorrect imports causing source files to be included in external projects
- Be able to instantiate `zxcvbn` HOT 4
- Internationalization of Matcher feedback HOT 4
- Type 'number' is not assignable to type 'never'. HOT 2
- Missing documentation regarding custom matchers HOT 3
- DOS when run server side HOT 7
- RangeError: Maximum call stack size exceeded @zxcvbn-ts/language-en Dictionary HOT 13
- Update Vue example with Composition API HOT 2
- "Matcher pwned already exists" HOT 15
- debounce function parameter type error
- Possible to only use translation? HOT 4
- A demo that can be run offline would be nice HOT 1
- Could you provide an Angular framework example? HOT 2
- Export Match type from /core/dist/index.d.ts HOT 2
- Separator Matcher doesn't catch first separator HOT 4
- Improve usage of this library HOT 4
- A UUID is categorised as a weak password HOT 1
- Tree shaking doesn't seem to work properly HOT 7
- [3.0.0 regression] error TS7016: Could not find a declaration file for module './adjacencyGraphs.json' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zxcvbn.