Comments (5)
@KainiIndustries be careful here -- the JS will let through all kinds of passwords the PHP version will reject, your users will be pretty frustrated when the strength meter is green and the backend rejects the password as too weak.
As for the "infinite" require statements (welcome to WordPress development. ;) ):
We get around this by using Composer and it's autoload.php. Code from our plugin.php file:
<?php
/*
* Plugin Name: Plugin
* ...
*/
include_once 'vendor/autoload.php';
class My_Plugin {
...
}
from zxcvbn-php.
@Moring I would expect all the different implementations of Zxcvbn to behave similar. Do you know for sure that it is very different from the JS implementation?
from zxcvbn-php.
Yes, learned the hard way. The JS version was rating passwords as 4, like "DrSmithDentist2016" for a dental client name Dr. Smith. The PHP version did not. We had both running on the same page, and the JS frontend would validate, and the PHP backend would not. Clients were not very happy at all...
from zxcvbn-php.
#15 is the best issue to track getting to consistent scores between front-end and back-end implementations of a Zxcvbn-style of password strength estimation.
If this issue is about how to use zxcvbn-php within Wordpress will the OP confirm if so and if it's still a problem?
from zxcvbn-php.
#15 has now been merged, so the PHP library matches the JS library in terms of scoring.
Are you still having any issues getting this working in Wordpress?
from zxcvbn-php.
Related Issues (20)
- array_unique error HOT 1
- add static analysis to the project
- Documentation request! HOT 1
- New release HOT 1
- Symfony Bundle Reference HOT 5
- List/doc over what is min,. requirement to reach X score
- PHP 8 syntax error, unexpected token "match" HOT 2
- Add azerty support for french users HOT 1
- Target class [App\Http\Livewire\ZxcvbnPhp\Zxcvbn] does not exist. HOT 1
- Add warning code to response array to allow mapping to custom feedback strings
- [feature] Add Timeout for long execution HOT 1
- [feature] Dictionnary location
- PHP Warning: foreach() argument must be of type array|object, null given HOT 1
- 32-bit compatibility HOT 19
- Add 32-bit platforms to build matrix on GitHub
- score 0 but no warning
- Return value of factorial should be int HOT 1
- DOS Exploit
- Process for generating Adjacency Graphs
- extremely long passwords cause factorial in scorer to return a float and throw error
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-php.