GPG-ZIP(1)

πŸ“¦ version 1.4.23, in fedora 43

πŸ’– GPG-ZIP(1) β€” GNU Privacy Guard πŸ’–

okay bestie, sit DOWN, because this one is lowkey iconic. it's gpg-zip, from the GNU Privacy Guard crew, and it's giving "tar but make it cryptographic." πŸŽ€


✨ NAME ✨

gpg-zip β€” encrypt or sign files into an archive πŸ¦‹


🌸 SYNOPSIS 🌸

gpg-zip [options] filename1 [ filename2, ... ] directory1 [ directory2, ... ]

like, you hand it files, you hand it directories, you hand it options, it does its thing. no cap. πŸ’…


πŸ’œ DESCRIPTION πŸ’œ

gpg-zip encrypts or signs files into an archive. it is, and I quote the ancestors here, an gpg-ized tar β€” using the same format as used by PGP's PGP Zip. so if you've ever wanted your directory tree to be wrapped up all cozy AND cryptographically locked down, this is literally the girl for the job. πŸ”₯


πŸ‘‘ OPTIONS πŸ‘‘

gpg-zip understands these options, and yes we're going through every single one, because we don't skip. ✨

  • --encrypt, -e β€” Encrypt data. πŸ’– this one can be combined with --symmetric, for output that may be decrypted via a secret key or a passphrase. versatile queen behavior.
  • --decrypt, -d β€” Decrypt data. πŸ”“
  • --symmetric, -c β€” Encrypt with a symmetric cipher using a passphrase. the default symmetric cipher used is CAST5, but you can pick a different one with the --cipher-algo option to gpg. πŸŽ€
  • --sign, -s β€” Make a signature. See gpg. ✍️
  • --recipient user, -r user β€” Encrypt for user id user. See gpg. 🫢
  • --local-user user, -u user β€” Use user as the key to sign with. See gpg. πŸ’œ
  • --list-archive β€” List the contents of the specified archive. peek inside, no unzipping required. πŸ‘€
  • --output file, -o file β€” Write output to specified file file. πŸ“
  • --gpg gpgcmd β€” Use the specified command gpgcmd instead of gpg. 🧚
  • --gpg-args args β€” Pass the specified options to gpg. πŸ¦‹
  • --tar tarcmd β€” Use the specified command tarcmd instead of tar. 🌸
  • --tar-args args β€” Pass the specified options to tar. ✨
  • --version β€” Print version of the program and exit. main character exit. πŸ’…
  • --help β€” Display a brief help page and exit. 🌈

πŸ”₯ EXAMPLES πŸ”₯

Encrypt the contents of directory mydocs for user Bob to file test1:

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

(yes, that spacing is exactly how it is in the original, don't come for me πŸ’€)

List the contents of archive test1:

gpg-zip --list-archive test1

πŸ’€ DIAGNOSTICS πŸ’€

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

that's it. zero is slay, one is "bestie something went wrong." 😭


🌟 SEE ALSO 🌟

gpg(1), tar(1),

The full documentation for this tool is maintained as a Texinfo manual. If GnuPG and the info program are properly installed at your site, the command

info gnupg

should give you access to the complete manual including a menu structure and an index. πŸ“–βœ¨


ngl the official manual name is gpg-zip, the man page section is 1, and the whole thing belongs to the GNU Privacy Guard project 🫢

and that's a wrap, bestie!! this page is from GnuPG 1.4, dated 2011-02-23, and it will forever live in the man page section GPG-ZIP(1). vintage but make it encrypted. πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from