Difference between revisions of "Gnupg"
| Line 42: | Line 42: | ||
uid aditya <aditya@kontenbelajar.com> | uid aditya <aditya@kontenbelajar.com> | ||
sub rsa3072 2021-01-26 [E] [expires: 2021-02-02] | sub rsa3072 2021-01-26 [E] [expires: 2021-02-02] | ||
| + | |||
| + | |||
| + | ===Digital Signature=== | ||
| + | Membuat tandatangan digital | ||
| + | gpg --output doc.sig --sign doc | ||
| + | gpg --output <data>.sig --sign <data.txt> | ||
| + | |||
| + | Melihat siapa yang menandatangani | ||
| + | gpg --output doc --decrypt doc.sig | ||
| + | gpg --output <data.txt> --decrypt <data>.sig | ||
===Referensi=== | ===Referensi=== | ||
Latest revision as of 11:29, 17 October 2021
GNU Privacy Guard is a free-software replacement for Symantec's PGP cryptographic software suite. It is compliant with RFC 4880, the IETF standards-track specification of OpenPGP. Modern versions of PGP are interoperable with GnuPG and other OpenPGP-compliant systems. GnuPG is part of the GNU Project and received major funding from the German government in 1999.
GnuPG is a complete and free implementation of the OpenPGP standard as defined by RFC4880 (also known as PGP). GnuPG allows you to encrypt and sign your data and communications; it features a versatile key management system, along with access modules for all kinds of public key directories. GnuPG, also known as GPG, is a command line tool with features for easy integration with other applications. A wealth of frontend applications and libraries are available. GnuPG also provides support for S/MIME and Secure Shell (ssh).
Instalasi
gnupg dapat didownload pada link https://gnupg.org/download/index.html
Secara default, di ubuntu sudah terdapat gnupg. Cara menggunakannya adalah:
gpg --full-generate-key
Pilih sesuai dengan kebutuhan
Please select what kind of key you want:
(1) RSA and RSA (default)
(2) DSA and Elgamal
(3) DSA (sign only)
(4) RSA (sign only)
(14) Existing key from card
Your selection? 1
RSA keys may be between 1024 and 4096 bits long. What keysize do you want? (3072) <enter>
Please specify how long the key should be valid.
0 = key does not expire
<n> = key expires in n days
<n>w = key expires in n weeks
<n>m = key expires in n months
<n>y = key expires in n years
Key is valid for? (0) 7
Key expires at Sel 02 Feb 2021 01:54:28 WIB Is this correct? (y/N) y
Real name: aditya Email address: aditya@kontenbelajar.com Comment:
Hasilnya akan mendapatkan public key
pub rsa3072 2021-01-26 [SC] [expires: 2021-02-02]
998EE192933C513071A93D2DD812BC0CDF6D9057
uid aditya <aditya@kontenbelajar.com>
sub rsa3072 2021-01-26 [E] [expires: 2021-02-02]
Digital Signature
Membuat tandatangan digital
gpg --output doc.sig --sign doc gpg --output .sig --sign <data.txt>
Melihat siapa yang menandatangani
gpg --output doc --decrypt doc.sig gpg --output <data.txt> --decrypt .sig