GnuPG: Catatan Singkat: Difference between revisions

From OnnoCenterWiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 14: Line 14:
  gpg -d -o newdecryptedfile file.asc
  gpg -d -o newdecryptedfile file.asc
  gpg -d -o newdecryptedfile file.gpg
  gpg -d -o newdecryptedfile file.gpg
Tanda tangan digital
gpg --output doc.sig --sign doc
gpg --output doc --decrypt doc.sig

Revision as of 10:33, 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

Tanda tangan digital

gpg --output doc.sig --sign doc
gpg --output doc --decrypt doc.sig