Skip to content

henkmollema/CryptoHelper

Repository files navigation

CryptoHelper

🔑 Standalone password hasher for ASP.NET Core using a PBKDF2 implementation.


This utility provides a standalone password hasher for ASP.NET Core without a dependency on ASP.NET Identity. The passwords are hashed using the Data Protection stack of ASP.NET Core.


Download

CryptoHelper is available on NuGet.


Usage

using CryptoHelper;

// Hash a password
public string HashPassword(string password)
{
    return PasswordHasher.HashPassword(password);
}

// Verify the password hash against the given password
public bool VerifyPassword(string hash, string password)
{
    return PasswordHasher.VerifyHashedPassword(hash, password);
}

Warning

The class name Crypto has been changed to PasswordHasher.

About

Standalone password hasher for ASP.NET Core using a PBKDF2 implementation.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors