PETERZSIGMOND.DEV
GitHub

Commands

A collection of shell commands for IT people

Shell >

GPG encrypt

Encrypt

sudo gpg --symmetric --no-symkey-cache file
--no-symkey-cache: It will not cache the passphrase on the computer

Decrypt

sudo gpg --output file --decrypt file.gpg
Result: file