{
    "mode": "man",
    "parameter": "gpg-zip",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/gpg-zip/1/json",
    "generated": "2026-06-15T18:53:03Z",
    "synopsis": "gpg-zip [OPTIONS] filename1 [filename2, ...]  directory1 [directory2, ...]",
    "sections": {
        "NAME": {
            "content": "gpg-zip - encrypt or sign files into an archive\n\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "gpg-zip [OPTIONS] filename1 [filename2, ...]  directory1 [directory2, ...]\n\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This manual page documents briefly the gpg-zip command.\n\ngpg-zip IS DEPRECATED.  PLEASE USE gpgtar(1) instead.\n\ngpg-zip  encrypts or signs files into an archive. It is an gpg-ized tar using the same format\nas PGP's PGP Zip.\n\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-e --encrypt",
                    "content": "Encrypt data. This option may be combined with --symmetric (for output that may be de‐\ncrypted via a secret key or a passphrase).\n",
                    "flag": "-e",
                    "long": "--encrypt"
                },
                {
                    "name": "-d --decrypt",
                    "content": "Decrypt data.\n",
                    "flag": "-d",
                    "long": "--decrypt"
                },
                {
                    "name": "-c --symmetric",
                    "content": "Encrypt with a symmetric cipher using a passphrase.  The default symmetric cipher used\nis CAST5, but may be chosen with the --cipher-algo option to gpg(1).\n",
                    "flag": "-c",
                    "long": "--symmetric"
                },
                {
                    "name": "-s --sign",
                    "content": "Make a signature. See gpg(1).\n",
                    "flag": "-s",
                    "long": "--sign"
                },
                {
                    "name": "-r --recipient",
                    "content": "Encrypt for user id USER. See gpg(1).\n",
                    "flag": "-r",
                    "long": "--recipient"
                },
                {
                    "name": "-u --local-user",
                    "content": "Use USER as the key to sign with. See gpg(1).\n",
                    "flag": "-u",
                    "long": "--local-user"
                },
                {
                    "name": "--list-archive",
                    "content": "List the contents of the specified archive.\n",
                    "long": "--list-archive"
                },
                {
                    "name": "-o --output",
                    "content": "Write output to specified file FILE.\n\n--gpg GPG\nUse the specified command instead of gpg.\n\n--gpg-args ARGS\nPass the specified options to gpg(1).\n\n--tar TAR\nUse the specified command instead of tar.\n\n--tar-args ARGS\nPass the specified options to tar(1).\n",
                    "flag": "-o",
                    "long": "--output"
                },
                {
                    "name": "-h --help",
                    "content": "Output a short usage information.\n",
                    "flag": "-h",
                    "long": "--help"
                },
                {
                    "name": "--version",
                    "content": "Output the program version.\n\n",
                    "long": "--version"
                }
            ]
        },
        "DIAGNOSTICS": {
            "content": "The program returns 0 if everything was fine, 1 otherwise.\n\n",
            "subsections": []
        },
        "EXAMPLES": {
            "content": "Encrypt the contents of directory mydocs for user Bob to file test1:\n\ngpg-zip --encrypt --output test1 --gpg-args  -r Bob\"\" mydocs\n\nList the contents of archive test1:\n\ngpg-zip --list-archive test1\n\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "gpg(1), gpgtar(1), tar(1)\n\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Copyright (C) 2005 Free Software Foundation, Inc. Please report bugs to <bug-gnupg@gnu.org>.\n\nThis manpage was written by Colin Tuckley <colin@tuckley.org> and Daniel Leidert <daniel.lei‐\ndert@wgdd.de> for the Debian distribution (but may be used by others).\n\n\n\n\nNovember 2006                                 GPG-ZIP(1)",
            "subsections": []
        }
    },
    "summary": "gpg-zip - encrypt or sign files into an archive",
    "flags": [
        {
            "flag": "-e",
            "long": "--encrypt",
            "arg": null,
            "description": "Encrypt data. This option may be combined with --symmetric (for output that may be de‐ crypted via a secret key or a passphrase)."
        },
        {
            "flag": "-d",
            "long": "--decrypt",
            "arg": null,
            "description": "Decrypt data."
        },
        {
            "flag": "-c",
            "long": "--symmetric",
            "arg": null,
            "description": "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)."
        },
        {
            "flag": "-s",
            "long": "--sign",
            "arg": null,
            "description": "Make a signature. See gpg(1)."
        },
        {
            "flag": "-r",
            "long": "--recipient",
            "arg": null,
            "description": "Encrypt for user id USER. See gpg(1)."
        },
        {
            "flag": "-u",
            "long": "--local-user",
            "arg": null,
            "description": "Use USER as the key to sign with. See gpg(1)."
        },
        {
            "flag": "",
            "long": "--list-archive",
            "arg": null,
            "description": "List the contents of the specified archive."
        },
        {
            "flag": "-o",
            "long": "--output",
            "arg": null,
            "description": "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). --tar TAR Use the specified command instead of tar. --tar-args ARGS Pass the specified options to tar(1)."
        },
        {
            "flag": "-h",
            "long": "--help",
            "arg": null,
            "description": "Output a short usage information."
        },
        {
            "flag": "",
            "long": "--version",
            "arg": null,
            "description": "Output the program version."
        }
    ],
    "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": [
        {
            "name": "gpg",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/gpg/1/json"
        },
        {
            "name": "gpgtar",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/gpgtar/1/json"
        },
        {
            "name": "tar",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/tar/1/json"
        }
    ],
    "tldr": {
        "source": "official",
        "description": "Encrypt files and directories in an archive using GPG.",
        "examples": [
            {
                "description": "Encrypt a directory into `archive.gpg` using a passphrase",
                "command": "gpg-zip {{-c|--symmetric}} {{-o|--output}} {{archive.gpg}} {{path/to/directory}}"
            },
            {
                "description": "Decrypt `archive.gpg` into a directory of the same name",
                "command": "gpg-zip {{-d|--decrypt}} {{path/to/archive.gpg}}"
            },
            {
                "description": "List the contents of the encrypted `archive.gpg`",
                "command": "gpg-zip --list-archive {{path/to/archive.gpg}}"
            }
        ]
    }
}