Skip to content
Permalink
55ffe53e1c
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
24 lines (23 sloc) 628 Bytes
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HarPadRee
{
public static class Crypto
{
/// <summary>
/// hashed the password usng SHA256
/// </summary>
/// <param name="value">returned the hashed password</param>
/// <returns></returns>
public static string Hash(string value)
{
return Convert.ToBase64String(
System.Security.Cryptography.SHA256.Create()
.ComputeHash(Encoding.UTF8.GetBytes(value))
);
}
}
}