Hi everybody !<div><br></div><div>I'm currently working with pycrypto and I want to import public and private keys from DER files.</div><div>I found a piece of code that shows how to proceed, but it isn't working anyway !</div>
<div>Here is the code I'm using:</div><div><br></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><div>f = file("./public_key.der")</div></div><div>
<div>key = RSA.importKey(f.read())</div></div><div><br></div></blockquote>It tells me <i>'module' object has no attribute 'importKey'. </i>It's rather strange since the method appears explicitely in the file /lib/Crypto/PublicKey/RSA.py<i>.</i><div>
<i><br></i></div><div>What am I doing wrong ?</div><div><br></div><div>Thanks.<br><div><div><br>-- <br>François S.<br>
</div></div></div>