Changes

Jump to navigation Jump to search
233 bytes added ,  09:18, 19 November 2019
m
Line 33: Line 33:  
  gpg --export-secret-key -a "User Name" > private.key
 
  gpg --export-secret-key -a "User Name" > private.key
   −
==== Change private key passphrase ====
+
====Change private key passphrase====
 
<syntaxhighlight lang="text">
 
<syntaxhighlight lang="text">
 
user@machine:~$ gpg --list-secret-keys
 
user@machine:~$ gpg --list-secret-keys
Line 64: Line 64:  
gpg> passwd
 
gpg> passwd
    +
</syntaxhighlight>
 +
 +
==== Delete Private Key ====
 +
<syntaxhighlight lang="bash">
 +
gpg --delete-secret-key 8167B416B55E2859
 
</syntaxhighlight>
 
</syntaxhighlight>
   Line 81: Line 86:  
=====From server=====
 
=====From server=====
 
  gpg --keyserver pgp.mit.edu --recv-keys 18384645
 
  gpg --keyserver pgp.mit.edu --recv-keys 18384645
 +
 +
==== Delete Public Key ====
 +
<syntaxhighlight lang="bash">
 +
gpg --delete-key 8167B416B55E2859
 +
</syntaxhighlight>
    
===Encrypt with a public key===
 
===Encrypt with a public key===
Line 91: Line 101:  
====Encrypt to multiple recipients====
 
====Encrypt to multiple recipients====
 
  <nowiki>gpg --recipient 42FF42FF \
 
  <nowiki>gpg --recipient 42FF42FF \
          --recipient 12345678 \
+
          --recipient 12345678 \
          --recipient FEFEFEFE \
+
          --recipient FEFEFEFE \
          --encrypt-files backup.tar</nowiki>
+
          --encrypt-files backup.tar</nowiki>
    
===Decrypt with private key===
 
===Decrypt with private key===

Navigation menu