I checked GIT, installed the latest Version.<br>use the Crypto.random.new().read function<br>I HOPE this is a goog idea ^^<br><br>#-----------------------------------------------------------------------<br>print &quot;\n=====RSA 368 Demo=====&quot;<br>
from Crypto.PublicKey import RSA<br>from Crypto import Random<br>rpool = Random.new()<br><br>privatekeyCMS = RSA.generate(368, rpool.read)<br><br>privatekeyClient = RSA.generate(368, rpool.read)<br>publickeyCMS = privatekeyCMS.publickey()<br>
publickeyClient = privatekeyClient.publickey()<br><br>signed_PWD = privatekeyCMS.sign(PWD,&quot;&quot;)<br>enc_PWD = publickeyClient.encrypt(PWD, &quot;&quot;)<br><br><br>#-----------------------------------------------------------------------<br>
another question about os.fork:<br>there is some functions to summon a child process:<br>like popen[1-4]<br>or some threading class:<br>I don&#39;t use os.fork.<br>should I use Random.atfork() for every sub process?<br><br>
<br><br><br> <br>