Encrypt doc.txt with only a passphrase (output to doc.txt.gpg)

gpg

  • GNU Privacy Guard.
    See `gpg2` for GNU Privacy Guard 2. Most operating systems symlink `gpg` to `gpg2`.
    More information: <https://gnupg.org>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

gpg --symmetric {{doc.txt}}

click the source code to copy install gpg on any operating system with command-not-found.com