python function for retrieving key and encryption

Piet van Oostrum piet at cs.uu.nl
Thu Jul 23 08:48:29 EDT 2009


>>>>> jayshree <jayshree06comp at gmail.com> (j) wrote:

>j> On Jul 21, 8:59 pm, Piet van Oostrum <p... at cs.uu.nl> wrote:

>>> The recipient_public_key.pem file is the public key of the recipient
>>> which means the person that is going to receive the encrypted message.
>>> You should get it from the recipient him/herself or from some key store
>>> where s/he has deposited it.
[...]

>j> error coming like - IOError: [Errno 2] No such file or directory:
>j> 'recipient_public_key.pem'

>j> Is this not the inbuilt file.
>j> How should i create such type of file.

You don't create it. See above. If you understand what is is you know
why it can't be builtin. If you don't understand it is better if you
first learn about OpenSSL, otherwise you run the risk to make serious
errors. 

If you are just experimenting to create a message for yourself then you
have to create the public key because you are then the recipient
yourself. That has been answered on
http://stackoverflow.com/questions/1169798/m2crypto-package 
-- 
Piet van Oostrum <piet at cs.uu.nl>
URL: http://pietvanoostrum.com [PGP 8DAE142BE17999C4]
Private email: piet at vanoostrum.org



More information about the Python-list mailing list