示例#1
0
 internal static string Encrypt(string data)
 {
     Gmis.Protection.DataProtection rsaPro=new Gmis.Protection.DataProtection();
     rsaPro.PublicKey=RSAPublicKey;
     string strData=rsaPro.EncryptText(data);
     return strData;
 }
示例#2
0
 internal static string Decrypt(string fileName)
 {
     Gmis.Protection.DataProtection rsaPro=new Gmis.Protection.DataProtection();
     rsaPro.Privatekey=RSAPrivateKey;
     string strData=rsaPro.DecryptFile(fileName);
     return strData;
 }
示例#3
0
        internal static string Decrypt(string fileName)
        {
            Gmis.Protection.DataProtection rsaPro = new Gmis.Protection.DataProtection();
            rsaPro.Privatekey = RSAPrivateKey;
            string strData = rsaPro.DecryptFile(fileName);

            return(strData);
        }
示例#4
0
        internal static string Encrypt(string data)
        {
            Gmis.Protection.DataProtection rsaPro = new Gmis.Protection.DataProtection();
            rsaPro.PublicKey = RSAPublicKey;
            string strData = rsaPro.EncryptText(data);

            return(strData);
        }