objectif
Partager un secret chifré sans gérer de clés publiques/privées.
code minimal
gpg --symmetric --cipher-algo AES256 secret.txt
utilisation
# déchiffrer
gpg --decrypt secret.txt.gpg > secret.txt
variante(s) utile(s)
# binaire en sortie standard
gpg -c --cipher-algo AES256 < file.bin > file.bin.gpg
notes
- choisissez une passphrase robuste.
- pour modernes: préférez
age(déjà couvert) si possible.