1234567891011121314151617181920 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Security.Cryptography;
- using System.Text;
- using System.Threading.Tasks;
- namespace Kusach
- {
- public class Encrypt
- {
- public static string GetHash(string password)
- {
- using (var hash = SHA1.Create())
- {
- return string.Concat(hash.ComputeHash(Encoding.UTF8.GetBytes(password)).Select(x => x.ToString("X2")));
- }
- }
- }
- }
|