Skip to content

Instantly share code, notes, and snippets.

@sfmskywalker
Last active November 2, 2019 09:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sfmskywalker/f977d0249446d472cf3d20c31c57ae76 to your computer and use it in GitHub Desktop.
Save sfmskywalker/f977d0249446d472cf3d20c31c57ae76 to your computer and use it in GitHub Desktop.
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