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
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
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
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
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
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.
>
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' ,
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
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