User Tools

Site Tools


protecting_passwords_with_gpg

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
protecting_passwords_with_gpg [2018/12/08 12:49] – created 0.0.0.0protecting_passwords_with_gpg [2019/01/30 11:32] (current) – external edit 127.0.0.1
Line 1: Line 1:
-====== Protecting_passwords_with_gpg ====== +===== Gnu Privacy Guard ===== 
- +==== Generate a private/public key pair ==== 
-======Gnu Privacy Guard====== +<code> 
-=====Generate a private/public key pair===== +gpg --gen-key 
-<code>0@@</code> +</code> 
-=====(Optional) Keyserver Registration=====+==== (Optional) Keyserver Registration ====
 To enable someone to retrieve your public key without having to contact you directly. To enable someone to retrieve your public key without having to contact you directly.
-====Find the id/fingerprint==== +=== Find the id/fingerprint === 
-<code>1@@</code>+<code> 
 +gpg --fingerprint <your name used in generation above> 
 +</code>
 id is the hex digit string after the / on the line starting with "pub" id is the hex digit string after the / on the line starting with "pub"
 fingerprint is the 10 groups of 4 hex digits on the "fingerprint" line! fingerprint is the 10 groups of 4 hex digits on the "fingerprint" line!
-====Register with a key server====+=== Register with a key server ===
 There are many available. This is just one example. There are many available. This is just one example.
-<code>2@@</code>+<code> 
 +gpg --keyserver subkeys.pgp.net --send-keys '<id>' 
 +or 
 +gpg --keyserver subkeys.pgp.net --send-keys '<fingerprint>' 
 +</code>
 Either method works. Either method works.
-====Decrypt a file using your (stored) private key==== +=== Decrypt a file using your (stored) private key === 
-<code>3@@</code> +<code> 
-====List the public keys on your keyring==== +gpg --decrypt --output /tmp/<readable file> <encrypted file> 
-<code>4@@</code> +or 
-====List the private key on your keyring==== +gpg -d -o /tmp/<readable file> <encrypted file> 
-<code>5@@</code> +</code> 
-====Use the private key on your keyring to display public key==== +=== List the public keys on your keyring === 
-<code>6@@</code> +<code> 
-====Delete someones public key from your keyring==== +gpg --list-keys 
-<code>7@@</code> +</code> 
-<code>8@@</code> +=== List the private key on your keyring === 
-====Change information about the key==== +<code> 
-<code>9@@</code>+[[oracle@sdtcsynx4adb01 ~]]$ gpg --list-secret-keys --keyid-format LONG 
 +/home/oracle/.gnupg/secxxxx.gpg 
 +------------------------------- 
 +sec   1024D/xxxx78D9BC15EC4B 2014-09-23 
 +uid                          xxxxsynxxxxx01 (xxxxxxxx xxxx) <xxxxxx@xxxxsynxxxxx01.local.net> 
 +ssb   1024g/6592B7C56EEBBB8A 2014-09-23 
 +</code> 
 +=== Use the private key on your keyring to display public key === 
 +<code> 
 +gpg --armor --export xxxx78D9BC15EC4B 
 +-----BEGIN PGP PUBLIC KEY BLOCK----- 
 +Version: GnuPG v2.0.14 (GNU/Linux) 
 + 
 +mQGiBFQhW3URBADY5RfOofl4/8tA+FN2zbVFAHV5hzI8vQA8wmAC9GV3B4HR6xYC 
 +5qBQPANhFgi9Atw+b/E/3Cs2+g5MfLwOvglxa5cOgbvYMohu80qOz/lXsVHNaaco 
 +n1FPTswudXca6h85QOu1tPj/3Y+bW+QaZS+SddMCv3KM5fxOUbaTRTIWUwCg56Jd 
 +FZEuDM7jFljyJE3lwDlcdo0EAIClPqBLCXXE3ZyJjNrcMyaqm8bNWyifjq5ZhXBU 
 +... 
 +lFx+IJyA791gruhSecKmcQHcruOrinrvXiS4OULNSbOlmuB+KsaVLAA3clpNI30Y 
 +ph1CEgBka0N1nLl/8qN3XTaSydx7DbYZCwW5TMEmWj8z8K3QQ5njeGPXTtmISQQY 
 +EQIACQUCVCFbdQIbDAAKCRCZMXjZvBXsS9TqAKDCqDwvFE+gKtHv5Wc3DTSPjIUf 
 +vACcCZB+Z0p4SV/Js+MSHU1ewntB4CU ====== 
 +====== QKiI 
 +-----END PGP PUBLIC KEY BLOCK----- 
 +</code> 
 +=== Delete someones public key from your keyring === 
 +<code> 
 +gpg --list-secret-keys 
 +</code> 
 +<code> 
 +gpg --armor --output pubic_gpg_key.txt --export '<your name used in generation above>' 
 +</code> 
 +=== Change information about the key === 
 +<code> 
 +gpg --refresh-keys 
 +</code> 
protecting_passwords_with_gpg.1544273361.txt.gz · Last modified: 2018/12/08 12:49 by 0.0.0.0

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki