Ejemplo n.º 1
0
        //获取公钥
        internal string GetPublicKey()
        {
            string publicKey   = RSACSP.ToXmlString(false);
            string encryptedPK = DESManager.DesEncrypt(publicKey);

            return(encryptedPK);
        }
Ejemplo n.º 2
0
        //获取私钥
        internal string GetPrivateKey()
        {
            string privateKey = RSACSP.ToXmlString(true);

            return(DESManager.DesEncrypt(privateKey));
        }