30 lines
814 B
C#
30 lines
814 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
using System.Security.Cryptography;
|
|
|
|
namespace Yaulw.Encryption
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public static class TextEncryptHash
|
|
{
|
|
private static byte[] _byteky = new byte[] {173,61,94,8,43,151,9,42,113,122,47,208,230,63,122,252,134,18,73,248,232,72,122,240,145,72,249,199,16,152,236,174,111,76,119,52,161,81,161,14,11,164,65,49,127,118,100,223,177,104,145,216,39,213,239,81,143,20,111,239,35,75,167,117};
|
|
|
|
public static string EncryptText(string text)
|
|
{
|
|
|
|
using (HMACSHA1 provider = new System.Security.Cryptography.HMACSHA1(_byteky, true))
|
|
{
|
|
//provider.En
|
|
}
|
|
|
|
return "";
|
|
}
|
|
|
|
}
|
|
}
|