Difference between revisions of "GnuPG: Catatan Singkat"

From OnnoWiki
Jump to navigation Jump to search
(Created page with "Generate Key gpg --full-generate-key gpg --gen-key Export Public Key gpg --output public.pgp --armor --export username@email Export Secret Key gpg --output private.pg...")
 
Line 4: Line 4:
 
  gpg --gen-key
 
  gpg --gen-key
  
Export Public Key
+
Export Public Key & Secret Key
  
 
  gpg --output public.pgp --armor --export username@email
 
  gpg --output public.pgp --armor --export username@email
 +
gpg --output private.pgp --armor --export-secret-key username@email
  
Export Secret Key
+
Encrypt & Decrypt
  
  gpg --output private.pgp --armor --export-secret-key username@email
+
  gpg -e -a -r <description> file
 +
gpg -d -o newdecryptedfile file.asc
 +
gpg -d -o newdecryptedfile file.gpg

Revision as of 17:28, 29 January 2023

Generate Key

gpg --full-generate-key
gpg --gen-key

Export Public Key & Secret Key

gpg --output public.pgp --armor --export username@email
gpg --output private.pgp --armor --export-secret-key username@email

Encrypt & Decrypt

gpg -e -a -r <description> file
gpg -d -o newdecryptedfile file.asc
gpg -d -o newdecryptedfile file.gpg