2

I noticed that 7zip provides an option to encrypt the contents of a folder using AES256 (Screenshot Below) and so does GPG using this command:

gpgtar --output <Name_Of_The_Output_File> -v --encrypt --symmetric --gpg-args "--cipher-algo AES256" <directory_to_encrypt>

Is there any difference between the two implementations? Is one more secure than the other?

enter image description here

1 Answer 1

3

7zip uses AES256 with the settings provided in that screenshot

GnuPG 2.1 Defaults to AES-128 though it supports many many more

3DES, IDEA (since versions 1.4.13 and 2.0.20), CAST5, Blowfish, Twofish, AES-192, AES-256, Camellia-128, -192 and -256 (since versions 1.4.10 and 2.0.12) - ref

For the gpgtar command you provided it would use the same AES-256 algorithm 7zip would use, the only real difference I could see is that one would use the ustar archive format and the Zip compression while the other would use 7z archive format with LZMA2 compression

Compression service in PGP is provided using ZIP Algorithm. - ref

4
  • Does that have any (known) security implications?
    – 7_R3X
    Aug 24, 2021 at 4:22
  • AES is not the interesting part. Everyone uses AES. Which AEAD mode (e.g. GCM, EAX)? Or which block cipher mode and which MAC and how are they combined, if not an AEAD mode (e.g. CTR-HMAC-SHA2, EtM)? Which PBKDF (e.g. scrypt)? Which settings for the KDF? etc. These are the details that matter. I personally recommend using github.com/FiloSottile/age
    – Z.T.
    Aug 24, 2021 at 12:32
  • @7_R3X neither have known security issues at this time Aug 24, 2021 at 14:24
  • It clear that 7zip uses AES in CBC mode. Do you know the mode of operation of gpgtar? It is not clear without the source code.
    – kelalaka
    Aug 26, 2021 at 8:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.