10 lines
256 B
C#
10 lines
256 B
C#
using System.Security.Cryptography;
|
|
using System.Text;
|
|
|
|
namespace NozCli.Core.Client;
|
|
|
|
public static class HashHelper
|
|
{
|
|
public static string Sha256(string text) =>
|
|
Convert.ToHexString(SHA256.HashData(Encoding.UTF8.GetBytes(text))).ToLower();
|
|
}
|