export gpg key code example
Example 1: How to export a GPG public key to a file
gpg --output public.pgp --armor --export username@email
Example 2: How to export a GPG private key to a file
gpg --output private.pgp --armor --export-secret-key username@email
Example 3: gpg key
gpg2 --armor --output "mon_fichier_chiffré" --encrypt "mon_fichier"
Example 4: gpg key
gpg2 --output <mon_fichier> --decrypt <mon_fichier.gpg>