修改实体模型

This commit is contained in:
2024-09-19 18:01:08 +08:00
parent b5d117f6fa
commit 32427f0f0c
5 changed files with 110 additions and 102 deletions
+9
View File
@@ -282,10 +282,19 @@ namespace IRaCIS.Application.Services
Console.WriteLine(RSAEncryption.Encrypt(publicKey, MD5Helper.Md5("123456")));
//U2FsdGVkX1+atIRsUP6uhWIMHIVmn7U2sy4HlgWiWJG1qc0WdYyQqzgTJ1JLeQGHvYrIYm90/YCkBYclYbnm1g==
string plainText = "Hello, BouncyCastle!";
string key = "12345678901234567890123456789012"; // AES 密钥长度应为 16 字节(128 位)
string iv = "your-iv-12345678"; // IV 长度为 16 字节
Console.WriteLine(AesEncryption.Encrypt(MD5Helper.Md5("123456"), key));
Console.WriteLine(AesEncryption.Encrypt("cyldev", key));
Console.WriteLine($"原始文本: {plainText}");
// 加密