mdhearing/aspnetcore-identity

A direct port of the algorithms used to generate and verify ASP.NET password hashes in .NET Core

0.3.0 2022-06-23 14:39 UTC

This package is auto-updated.

Last update: 2024-10-23 19:29:17 UTC


README

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

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

Install

Via Composer

$ composer require mdhearing/aspnetcore-identity

Usage

$hasher = new MDHearing\AspNetCore\Identity\PasswordHasher();
$hashedPassword = $hasher->hashPassword('very strong password');
$result = $hasher->verifyHashedPassword($hashedPassword, 'very strong password');

Change log

Please see CHANGELOG for more information on what has changed recently.

Testing

$ composer test
$ composer check-style

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details.

Security

If you discover any security related issues, please email it@mdhearingaid.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.