LinuxCommandLibrary

gpg-zip

Encrypt or sign files into a GPG archive (deprecated)

TLDR

Encrypt directory with symmetric encryption
$ gpg-zip --symmetric --output [archive.gpg] [directory]
copy
Encrypt for a recipient
$ gpg-zip --encrypt --output [archive.gpg] --gpg-args "-r [recipient]" [directory]
copy
Decrypt an archive
$ gpg-zip --decrypt [archive.gpg]
copy
List archive contents
$ gpg-zip --list-archive [archive.gpg]
copy
Sign and encrypt
$ gpg-zip --encrypt --sign --output [archive.gpg] [directory]
copy

SYNOPSIS

gpg-zip [options] [files]

DESCRIPTION

gpg-zip encrypts or signs files into an archive using GnuPG. It combines tar archiving with GPG encryption in a format compatible with PGP Zip, supporting both symmetric (passphrase) and asymmetric (public-key) encryption.
This tool is deprecated in favor of gpgtar, which provides the same functionality with better integration into the modern GnuPG suite.

PARAMETERS

-e, --encrypt

Encrypt data.
-d, --decrypt
Decrypt data.
-c, --symmetric
Encrypt with symmetric cipher using passphrase.
-s, --sign
Sign data.
--list-archive
List archive contents.
-o, --output file
Output file.
--gpg-args args
Pass options to gpg.
--tar command
Use alternative tar command.

CAVEATS

gpg-zip is deprecated. Use gpgtar instead.

SEE ALSO

gpgtar(1), gpg(1), tar(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard