Password Hashing Library
This is a NuGet package for creating password hash and salt using Cryptography and encryption of type SHA 256 built into .NET
- Method for creating password hash.
- Method for verifying password hash.
- Go to the NuGet Package Explorer and type in PasswordHashingLibrary.
- Install the latest version for your project.
- Go to https://www.nuget.org/packages/PasswordHashingLibrary.Helper/ and find the of the copy latest version.
- On the .NET CLI or Command prompt
dotnet add package PasswordHashingLibrary.Helper
- Add the namespace of the package to the file
using PasswordHashingLibrary.Helper.PasswordHasher;
- The method built into the NuGet package are static methods so are called
PasswordHash.CreatePasswordHash(string password, out passwordHash, out passwordsalt)
PasswordHash.VerifyPasswordHash(string password, byte storedHash, byte storedSalt)
- You can check the repository to see how the password hashing and password salt works and learn how to integrate it into your application.
For more about password hashing and encryption in ASP.NET Core, see https://docs.microsoft.com/en-us/aspnet/core/security/data-protection/consumer-apis/password-hashing?view=aspnetcore-5.0
Isaac Gabriel
MIT