ezPyCrypto encryption using only public key problem.
Peter Hansen
peter at engcorp.com
Sun Jun 15 16:21:47 EDT 2003
Adrian wrote:
>
> I've noticed that when encrypting a message using only just a public key
> I get an exception:
>
> _fastmath.error: Private key not available in this object
>
> So I did a little digging around in ezPyCrypto.py and saw that when
> encrypting a message it does some sort of decryption verification.
> As far as I know, you can't decrypt without a public/private key pair.
>
> As a side note, I tried using the ezPyCrypto examples that show
> encrypting a message with only the public key imported (example3.py),
> and they fail to.
I encountered the same issue (at least with the example #3) so I
just commented out the offending (and apparently unnecessary) line
in the source and carried on... My guess was that it was left
there from development debugging or something.
-Peter
More information about the Python-list
mailing list