You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to python-gnupg
Hi All,
May I ask any parameter we can set the compression algorithm
when we encrypt the file?
Thanks
Vinay Sajip
unread,
May 3, 2023, 10:27:05 AM5/3/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to python-gnupg
No, encryption and compression are orthogonal. Compress your data before encrypting it, or vice versa - it doesn't matter, as long as you reverse the order of operations when decompressing/decrypting.
Low Kim Hoe
unread,
May 8, 2023, 1:08:47 AM5/8/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to python-gnupg
Hi Vinay,
I have found this option, --compress-algo under the GNUPG software.
We can select the preference compression format with this option by running GNUPG command. example: gpg --encrypt --recipient "key_id_public_key" --compress-algo zip "file_name"
Do you mean that python-gnupg library doesnt support for this option?
Thanks
Vinay Sajip
unread,
May 8, 2023, 1:39:45 PM5/8/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to python-gnupg
Oh, I see. Yes, you can pass extra arguments to gpg using the extra_args parameter - for example,
result = gpg.encrypt(..., extra_args = ['--compress-algo', 'zip'])
Low Kim Hoe
unread,
May 11, 2023, 1:50:40 AM5/11/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to python-gnupg
Sorry for late reply and yes this is working for me.
thank you so much for helping
Vinay Sajip
unread,
May 11, 2023, 10:53:56 AM5/11/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message