Encrypt file data and headers with password

rar

  • The RAR archiver. Supports multi-volume archives that can be optionally self-extracting.
    More information: <https://manned.org/rar>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

rar a -hp{{password}} {{path/to/archive_name.rar}} {{path/to/file_or_directory}}

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