9e7e8018e8
SVN-Revision: r954
17 lines
486 B
C#
17 lines
486 B
C#
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 |