Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: GnuPG: users

encrypting compression algorithms

 

 

GnuPG users RSS feed   Index | Next | Previous | View Threaded


marcio.barbado at gmail

Sep 4, 2009, 9:53 AM

Post #1 of 4 (689 views)
Permalink
encrypting compression algorithms

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi list,
when symmetrically encrypting a file, e.g.:

$ gpg --output file.ods.gpg --symmetric file.ods

the command above generates a "gpg" extension encrypted AND compressed
file, is that correct?

How do I know which compression algorithm was used?

How can I force any other available algorithm?


Regards,



- --
Marcio Barbado, Jr.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)

iD8DBQFKoUVbhIh3kh+NgOcRAokMAKC8cHDZsPAVBdewgZspneqpexxTAwCdFGZ2
QRPvKTZbGx4+KkAiwl7IOJM=
=/Yuj
-----END PGP SIGNATURE-----

_______________________________________________
Gnupg-users mailing list
Gnupg-users [at] gnupg
http://lists.gnupg.org/mailman/listinfo/gnupg-users


dshaw at jabberwocky

Sep 5, 2009, 9:11 AM

Post #2 of 4 (637 views)
Permalink
Re: encrypting compression algorithms [In reply to]

On Sep 4, 2009, at 12:53 PM, M.B.Jr. wrote:

> when symmetrically encrypting a file, e.g.:
>
> $ gpg --output file.ods.gpg --symmetric file.ods
>
> the command above generates a "gpg" extension encrypted AND compressed
> file, is that correct?

Unless you've disabled compression in your gpg.conf file, yes, it is
both encrypted and compressed.

> How do I know which compression algorithm was used?

Unless you've overridden the default, it is ZIP.

> How can I force any other available algorithm?

personal-compress-preferences (algo)

And (algo) can be "uncompressed", "zip", "zlib", or "bzip2". Note
that bzip2 is only available if your GPG was built with the bzip2
library.

David


_______________________________________________
Gnupg-users mailing list
Gnupg-users [at] gnupg
http://lists.gnupg.org/mailman/listinfo/gnupg-users


marcio.barbado at gmail

Sep 5, 2009, 5:59 PM

Post #3 of 4 (645 views)
Permalink
Re: encrypting compression algorithms [In reply to]

Hi David, thank you.


On Sat, Sep 5, 2009 at 1:11 PM, David Shaw<dshaw [at] jabberwocky> wrote:
> On Sep 4, 2009, at 12:53 PM, M.B.Jr. wrote:
>
>> How do I know which compression algorithm was used?
>
> Unless you've overridden the default, it is ZIP.
>


Ok but in this point, my doubt is about some command to check whether
a "gpg" extension file is compressed and in case it is, which
algorithm was used. Like (just an example):

$ gpg --check-compression file.gpg

Is there something like that?



Regards,





Marcio Barbado, Jr.

_______________________________________________
Gnupg-users mailing list
Gnupg-users [at] gnupg
http://lists.gnupg.org/mailman/listinfo/gnupg-users


dshaw at jabberwocky

Sep 5, 2009, 8:10 PM

Post #4 of 4 (633 views)
Permalink
Re: encrypting compression algorithms [In reply to]

On Sep 5, 2009, at 8:59 PM, M.B.Jr. wrote:

> Hi David, thank you.
>
>
> On Sat, Sep 5, 2009 at 1:11 PM, David Shaw<dshaw [at] jabberwocky>
> wrote:
>> On Sep 4, 2009, at 12:53 PM, M.B.Jr. wrote:
>>
>>> How do I know which compression algorithm was used?
>>
>> Unless you've overridden the default, it is ZIP.
>>
>
>
> Ok but in this point, my doubt is about some command to check whether
> a "gpg" extension file is compressed and in case it is, which
> algorithm was used. Like (just an example):
>
> $ gpg --check-compression file.gpg
>
> Is there something like that?

Not really, but you could look at the debug output. Try decrypting
the file with "-vv" added to the command line. If it is compressed,
you'll see a line like ":compressed packet: algo=1". Algo 1 is ZIP,
algo 2 is ZLIB, algo 3 is BZIP2.

David


_______________________________________________
Gnupg-users mailing list
Gnupg-users [at] gnupg
http://lists.gnupg.org/mailman/listinfo/gnupg-users

GnuPG users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.