修改实体模型
This commit is contained in:
@@ -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}");
|
||||
|
||||
// 加密
|
||||
|
||||
Reference in New Issue
Block a user