internal static string Encrypt(string data) { Gmis.Protection.DataProtection rsaPro=new Gmis.Protection.DataProtection(); rsaPro.PublicKey=RSAPublicKey; string strData=rsaPro.EncryptText(data); return strData; }
internal static string Decrypt(string fileName) { Gmis.Protection.DataProtection rsaPro=new Gmis.Protection.DataProtection(); rsaPro.Privatekey=RSAPrivateKey; string strData=rsaPro.DecryptFile(fileName); return strData; }
internal static string Decrypt(string fileName) { Gmis.Protection.DataProtection rsaPro = new Gmis.Protection.DataProtection(); rsaPro.Privatekey = RSAPrivateKey; string strData = rsaPro.DecryptFile(fileName); return(strData); }
internal static string Encrypt(string data) { Gmis.Protection.DataProtection rsaPro = new Gmis.Protection.DataProtection(); rsaPro.PublicKey = RSAPublicKey; string strData = rsaPro.EncryptText(data); return(strData); }