yiisoft / security Goto Github PK
View Code? Open in Web Editor NEWA set of classes to handle common security-related tasks
Home Page: https://www.yiiframework.com/
License: BSD 3-Clause "New" or "Revised" License
A set of classes to handle common security-related tasks
Home Page: https://www.yiiframework.com/
License: BSD 3-Clause "New" or "Revised" License
$hash1 = (new PasswordHasher())->hash("qwerty");
$hash2 = (new PasswordHasher(PASSWORD_BCRYPT))->hash("qwerty");
hashed password
1st case: password_hash() expects parameter 3 to be array, null given
2nd case: A non well formed numeric value encountered
in php 7.4
Password hashing algorithm identifiers are now nullable strings rather
than integers.
* PASSWORD_DEFAULT was int 1; now is null
* PASSWORD_BCRYPT was int 1; now is string '2y'
* PASSWORD_ARGON2I was int 2; now is string 'argon2i'
* PASSWORD_ARGON2ID was int 3; now is string 'argon2id'
Q | A |
---|---|
Version | 1.0.? |
PHP version | 7.4.0beta2 |
Operating system | Ubuntu 18.04 |
http=>https
Q | A |
---|---|
Version | 1.0.? |
PHP version | |
Operating system |
Q | A |
---|---|
Version | 1.0.? |
PHP version | |
Operating system |
PHP 7.2 adds support for the Argon2 password hashing algorithm. Argon2 was the winner of the Password Hashing Competition and is being widely adopted as the modern standard for password hashing.
Hashing passwords with Argon2i is now as simple as:
password_hash('password_here', PASSWORD_ARGON2I);
Verifying passwords hashed with Argon2i is the same as before:
password_verify('password_here', $hash);
More about the changes to password_hash()
here.
Naming should be reviewed before first release. Please comment if you see a way to improve public API.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.