aboutsummaryrefslogtreecommitdiff
path: root/src/Common/DevHive.Common.Models/Misc/PasswordModifications.cs
blob: f10a334dcb62f40e0828ee129ed65494f8b8c985 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
using System.Security.Cryptography;
using System.Text;

namespace DevHive.Common.Models.Misc
{
	public static class PasswordModifications
	{
		public static string GeneratePasswordHash(string password)
		{
			return string.Join(string.Empty, SHA512.HashData(Encoding.ASCII.GetBytes(password)));
		}
	}
}