python- gnupg encryption , guide in using a public key file to encrypt a file in python-gnupg

674 views
Skip to first unread message

phenomenonaurora

unread,
Aug 21, 2011, 1:31:10 AM8/21/11
to python-gnupg
hey everyone,
I am new to this forum as well as cryptography, what i have my
problem is to encrypt a
file using python-gnupg. I am refering http://packages.python.org/python-gnupg/,
but i am unable to
encrypt a file using my public key, although i got successful in
encrypting a string data.
Please can someone help me out in this part.

thanks ,
phenomenon.A

Vinay Sajip

unread,
Aug 24, 2011, 3:41:29 PM8/24/11
to python-gnupg


On Aug 21, 6:31 am, phenomenonaurora <phenomenon.aur...@gmail.com>
wrote:
> hey everyone,
>  I am new to this forum as well as cryptography, what i have my
> problem is to encrypt a
> file using python-gnupg. I am referinghttp://packages.python.org/python-gnupg/,
> but i am unable to
> encrypt a file using my public key, although i got successful in
> encrypting a string data.
> Please can someone help me out in this part.
>
> thanks ,
> phenomenon.A

This is documented in the page you linked to -

http://packages.python.org/python-gnupg/#encryption

Regards,

Vinay Sajip

phenomenonaurora

unread,
Sep 1, 2011, 1:18:47 PM9/1/11
to python-gnupg
thanks vinay, and i am able to encrypt so. Now problem is again i have
to use a public key generated using mcafee server version.How can i do
encrypt my file as i import the keyring in mine but unable to encrypt
my file.
thanks

Vinay Sajip

unread,
Sep 2, 2011, 2:26:02 AM9/2/11
to python-gnupg
On Sep 1, 6:18 pm, phenomenonaurora <phenomenon.aur...@gmail.com>
wrote:
> thanks vinay, and i am able to encrypt so. Now problem is again i have
> to use a public key generated using mcafee server version.How can i do
> encrypt my file as i import the keyring in mine but unable to encrypt
> my file.
> thanks

Sorry, you haven't provided enough information for me to be able to
help.

Regards,

Vinay Sajip
Reply all
Reply to author
Forward
0 new messages