Last active
November 2, 2019 09:54
-
-
Save sfmskywalker/f977d0249446d472cf3d20c31c57ae76 to your computer and use it in GitHub Desktop.
HashedPassword.cs - Building Workflow Driven .NET Core Applications with Elsa
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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