python+encryption

2009-06-30 Thread jayshree
I have the key pair generated by the GPG. Now I want to use the public key for encrypting the password. I need to make a function in Python. Can somebody guide me on how to do this … to encrypt password by the public key ..how can i do this ,which library is best and easy to prefer.i have to work

python function for retrieving key and encryption

2009-07-20 Thread jayshree
M2Crypto package not showing the 'recipient_public_key.pem' file at linux terminal .how do i get/connect with recipient public key. exactly i need to check how can i open this file through linux commands. import M2Crypto def encrypt(): recip = M2Crypto.RSA.load_pub_key(open ('recipient_public_key

Re: python function for retrieving key and encryption

2009-07-22 Thread jayshree
On Jul 21, 8:59 pm, Piet van Oostrum wrote: > >>>>> jayshree (j) wrote: > >j> M2Crypto package not showing the 'recipient_public_key.pem' file at > >j> linux terminal .how do i get/connect with recipient public key. > >j> exactly i ne

Re: python function for retrieving key and encryption

2009-07-26 Thread jayshree
On Jul 23, 5:48 pm, Piet van Oostrum wrote: > >>>>> jayshree (j) wrote: > >j> On Jul 21, 8:59 pm, Piet van Oostrum wrote: > >>> The recipient_public_key.pem file is the public key of the recipient > >>> which means the person that is going to

open a file in python

2009-07-27 Thread jayshree
pk = open('/home/jayshree/my_key.public.pem' , 'rb').read() Please tell me how to open a file placed in any directory or in same directory. After opening this file i want to use the contain (public key ) for encryption thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: open a file in python

2009-07-27 Thread jayshree
On Jul 27, 1:09 pm, Kushal Kumaran wrote: > On Mon, Jul 27, 2009 at 12:58 PM, jayshree wrote: > > pk = open('/home/jayshree/my_key.public.pem' , 'rb').read() > > > Please tell me how to open a file placed in any directory or in same > > directory. >

Re: open a file in python

2009-07-29 Thread jayshree
On Jul 27, 2:55 pm, "Diez B. Roggisch" wrote: > jayshree wrote: > > On Jul 27, 1:09 pm, Kushal Kumaran > > wrote: > >> On Mon, Jul 27, 2009 at 12:58 PM, jayshree > >> wrote: > >> > pk = open('/home/jayshree/my_key.public.pem' ,

problem in encryption

2009-09-22 Thread jayshree
hello , The community members, Using following code : fileHandle = open ('jay1key.py','wb') #fileHandle = open ('jay1key.pem',rb).read() print fileHandle.write (data) #data variable is contains the key fileHandle.close() otp = 'jyshri69' pub_key = M2Crypto.RSA.load_pub_key('jay1key.py') enc

Re: problem in encryption

2009-09-22 Thread jayshree
On Sep 22, 1:44 pm, jayshree wrote: > hello , > The community members, > > Using following code  : > > fileHandle = open ('jay1key.py','wb') > #fileHandle = open ('jay1key.pem',rb).read() > print fileHandle.write (data) #data variable is con