Rsa Cryptography in c#. i have encrypted an xml file and saved it
<p>Rsa Cryptography in c#. i have encrypted an xml file and saved it .after that i transferred this file to another pc .the main problem is that it couldn,t decrypt.i dont know why??
when iam decrypting on the same machine the xml file is decrypted..</p>

<p><pre><code>
 public static byte[] decryptFile(XmlDocument Doc, RSA rsaKey, string KeyName)
        {</p>

        Doc = new XmlDocument();

        Doc.PreserveWhitespace = true;
        Doc.Load(@"MLPACK1.xml");
        EncryptedXml encXml = new EncryptedXml(Doc);
        encXml.AddKeyNameMapping(KeyName, rsaKey);

        encXml.DecryptDocument();
        string contentOfDocument = Doc.OuterXml;
        byte[] buffer = StrToByteArray(contentOfDocument);

        return buffer;

    }
</code></pre>
