Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
HashedPassword.cs - Building Workflow Driven .NET Core Applications with Elsa
using System;
namespace Elsa.Samples.UserRegistration.Web.Models
{
public class HashedPassword
{
public HashedPassword(byte[] hashed, byte[] salt)
{
Hashed = Convert.ToBase64String(hashed);
Salt = Convert.ToBase64String(salt);
}
public HashedPassword(string hashed, string salt)
{
Hashed = hashed;
Salt = salt;
}
public string Salt { get; }
public string Hashed { get; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.