public static string Decrypt(string data) { DESSecurity DES = new DESSecurity(); data = DES.Decrypt(data); RSASecurity RSA = new RSASecurity(); data = RSA.Decrypt(data, _Rsa_PriKey); return(data); }
public static string Encrypt(string data) { RSASecurity RSA = new RSASecurity(); data = RSA.Encrypt(data, _Rsa_PubKey); DESSecurity DES = new DESSecurity(); data = DES.Encrypt(data); return(data); }