using System.Security.Cryptography;
using System.Text;
namespace EncryptTest
{
internal class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello, World!");
string 密= EncryptAESBASE64("你第三方第三方斯蒂芬 手打几号放假啊哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈 ****---#¥%…………&*(好", "666");
Console.WriteLine(密);
string 明文= DecryptAESBASE64(密, "666");
Console.WriteLine(明文);
明文 = DecryptAESBASE64(密, "私人的KEY_NAME");//公钥读取
Console.WriteLine(明文);
}
public static byte[] CalculateMD5(string input)
{
MD5 md5 = MD5.Create();
byte[] inputBytes = Encoding.UTF8.GetBytes(input);
return md5.ComputeHash(inputBytes);
}
private static Dictionary<string, byte[]>? keys=new Dictionary<string,