SVN-Revision: r954
This commit is contained in:
wyf
2025-08-18 08:20:49 +00:00
parent 265074dae2
commit 9e7e8018e8
14 changed files with 1660 additions and 0 deletions
@@ -0,0 +1,17 @@
using Org.BouncyCastle.Crypto.Parameters;
using Org.BouncyCastle.Security;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
namespace Lskj.QueryEssentialInfo
{
public static class RsaEntryUtil
{
public static byte[] Encrypt(string plainText, string publicKeyXml)
{
byte[] dataToEncrypt = Encoding.UTF8.GetBytes(plainText);
using (RSACryptoServi