henkmollema / CryptoHelper

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CryptoHelper

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


Windows Linux OS X
Build status Build Status Build Status

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


Download

CryptoHelper is available on NuGet.


Usage

using CryptoHelper;

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

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

About

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

License:MIT License


Languages

Language:C# 93.0%Language:PowerShell 3.5%Language:Batchfile 2.6%Language:Shell 0.8%