<div dir="ltr"><div style="margin-left:40px"><div>
          Hi all,<br><br></div>I have found a mistake in the api documentation, but as I am new to the list I don't know if this has been noticed yet.<br><br></div><div style="margin-left:40px">The error resides in "</div><div style="margin-left:40px"><div><a href="https://www.dlitz.net/software/pycrypto/api/current/Crypto.PublicKey.RSA-module.html">https://www.dlitz.net/software/pycrypto/api/current/Crypto.PublicKey.RSA-module.html</a>" at the following code (at the beginning of the web page):<br><pre class=""><span class="">>>> </span><span class="">from</span> Crypto.PublicKey <span class="">import</span> RSA
<span class="">>>></span>
<span class="">>>> </span>key = RSA.generate(2048)
<span class="">>>> </span>f = open(<span class="">'mykey.pem'</span>,<span class="">'w'</span>)
<span class="">>>> </span>f.write(<b>RSA.exportKey</b>(<span class="">'PEM'</span>))
<span class="">>>> </span>f.close()
<span class="">...</span>
<span class="">>>> </span>f = open(<span class="">'mykey.pem'</span>,<span class="">'r'</span>)
<span class="">>>> </span>key = RSA.importKey(f.read())</pre>The write functions uses "RSA.exportKey" where it should be "<b>key</b>.exportKey". <br><br>If this is not the right place to post this issue, please redirect this message to the one who should care about it, or tell me who is and I will contact with him/her.<br><br></div><div>Best regards.<br>

          </div></div></div>