A direct PHP port of the algorithms used to generate and verify ASP.NET password hashes in .NET Core.
https://github.com/dotnet/aspnetcore/blob/master/src/Identity/Extensions.Core/src/PasswordHasher.cs
Via Composer
$ composer require mdhearing/aspnetcore-identity
$hasher = new MDHearing\AspNetCore\Identity\PasswordHasher();
$hashedPassword = $hasher->hashPassword('very strong password');
$result = $hasher->verifyHashedPassword($hashedPassword, 'very strong password');
Please see CHANGELOG for more information on what has changed recently.
$ composer test
$ composer check-style
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.