# man > gpg-zip(1)

> **TLDR:** Encrypt files and directories in an archive using GPG.
>
- Encrypt a directory into `archive.gpg` using a passphrase:
  `gpg-zip {{-c|--symmetric}} {{-o|--output}} {{archive.gpg}} {{path/to/directory}}`
- Decrypt `archive.gpg` into a directory of the same name:
  `gpg-zip {{-d|--decrypt}} {{path/to/archive.gpg}}`
- List the contents of the encrypted `archive.gpg`:
  `gpg-zip --list-archive {{path/to/archive.gpg}}`

*Source: tldr-pages*

---

[GPG-ZIP(1)](https://www.chedong.com/phpMan.php/man/GPG-ZIP/1/markdown)                             General Commands Manual                            [GPG-ZIP(1)](https://www.chedong.com/phpMan.php/man/GPG-ZIP/1/markdown)



## NAME
       gpg-zip - encrypt or sign files into an archive


## SYNOPSIS
       **gpg-zip** [**OPTIONS**] _filename1_ [_filename2,_ _..._]  _directory1_ [_directory2,_ _..._]


## DESCRIPTION
       This manual page documents briefly the **gpg-zip** command.

       **gpg-zip** IS DEPRECATED.  PLEASE USE [gpgtar(1)](https://www.chedong.com/phpMan.php/man/gpgtar/1/markdown) instead.

       **gpg-zip**  encrypts or signs files into an archive. It is an gpg-ized tar using the same format
       as PGP's PGP Zip.


## OPTIONS
### -e --encrypt
              Encrypt data. This option may be combined with **--symmetric** (for output that may be de‐
              crypted via a secret key or a passphrase).

### -d --decrypt
              Decrypt data.

### -c --symmetric
              Encrypt with a symmetric cipher using a passphrase.  The default symmetric cipher used
              is CAST5, but may be chosen with the **--cipher-algo** option to [**gpg**(1)](https://www.chedong.com/phpMan.php/man/gpg/1/markdown).

### -s --sign
              Make a signature. See [**gpg**(1)](https://www.chedong.com/phpMan.php/man/gpg/1/markdown).

### -r --recipient
              Encrypt for user id _USER_. See [**gpg**(1)](https://www.chedong.com/phpMan.php/man/gpg/1/markdown).

### -u --local-user
              Use _USER_ as the key to sign with. See [**gpg**(1)](https://www.chedong.com/phpMan.php/man/gpg/1/markdown).

### --list-archive
              List the contents of the specified archive.

### -o --output
              Write output to specified file _FILE_.

       **--gpg** _GPG_
              Use the specified command instead of **gpg**.

       **--gpg-args** _ARGS_
              Pass the specified options to [**gpg**(1)](https://www.chedong.com/phpMan.php/man/gpg/1/markdown).

       **--tar** _TAR_
              Use the specified command instead of **tar**.

       **--tar-args** _ARGS_
              Pass the specified options to [**tar**(1)](https://www.chedong.com/phpMan.php/man/tar/1/markdown).

### -h --help
              Output a short usage information.

### --version
              Output the program version.


## DIAGNOSTICS
       The program returns **0** if everything was fine, **1** otherwise.


## EXAMPLES
       Encrypt the contents of directory _mydocs_ for user Bob to file _test1_:

              **gpg-zip** **--encrypt** **--output** **test1** **--gpg-args**  **-r** **Bob""** **mydocs**

       List the contents of archive _test1_:

              **gpg-zip** **--list-archive** **test1**


## SEE ALSO
       [**gpg**(1)](https://www.chedong.com/phpMan.php/man/gpg/1/markdown), [**gpgtar**(1)](https://www.chedong.com/phpMan.php/man/gpgtar/1/markdown), [**tar**(1)](https://www.chedong.com/phpMan.php/man/tar/1/markdown)


## AUTHOR
       Copyright (C) 2005 Free Software Foundation, Inc. Please report bugs to <<bug-gnupg@gnu.org>>.

       This manpage was written by **Colin** **Tuckley** <<colin@tuckley.org>> and **Daniel** **Leidert** <daniel.lei‐
       <dert@wgdd.de>> for the Debian distribution (but may be used by others).




                                            November 2006                                 [GPG-ZIP(1)](https://www.chedong.com/phpMan.php/man/GPG-ZIP/1/markdown)
