Giter Site home page Giter Site logo

yiisoft / security Goto Github PK

View Code? Open in Web Editor NEW
44.0 21.0 10.0 155 KB

A set of classes to handle common security-related tasks

Home Page: https://www.yiiframework.com/

License: BSD 3-Clause "New" or "Revised" License

PHP 100.00%
security random password encryption decryption tampering signature token masking yii3

security's People

Contributors

alexkart avatar arhell avatar dependabot-preview[bot] avatar dependabot[bot] avatar devanych avatar fantom409 avatar roxblnfk avatar samdark avatar terabytesoftw avatar viktorprogger avatar vjik avatar xepozz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

security's Issues

PasswordHasher not compatible with php7.4

What steps will reproduce the problem?

$hash1 = (new PasswordHasher())->hash("qwerty");
$hash2 = (new PasswordHasher(PASSWORD_BCRYPT))->hash("qwerty");

What is the expected result?

hashed password

What do you get instead?

1st case: password_hash() expects parameter 3 to be array, null given
2nd case: A non well formed numeric value encountered

Additional info

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

update src folder links

What steps will reproduce the problem?

http=>https

What is the expected result?

What do you get instead?

Additional info

Q A
Version 1.0.?
PHP version
Operating system

update irc link

What steps will reproduce the problem?

What is the expected result?

What do you get instead?

Additional info

Q A
Version 1.0.?
PHP version
Operating system

PHP 7.2 Enh: Add Argon2 as password hashing algorithm

Argon2 for Secure Password Hashing

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.

Review naming

Naming should be reviewed before first release. Please comment if you see a way to improve public API.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.