SVN r954
SVN-Revision: r954
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user