Cryptography and How to Use Open GPG to Encrypt Knowledge

0
92
Spread the love
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

uid displays an id tied to the grasp general public and sub-keys
sub indicators that the key is subordinate important. It&#39s employed for encryption
2048 is amount of bits in the encryption
g – ElGamal applied for encryption
7CB6CABD is exclusive crucial ID
2005-08-21 is the day when the encryption crucial was established

To list top secret essential

gpg -listing-secret-keys

/house/testuser/.gnupg/secring.gpg
———–
sec 1024D / 6A62309F 2009-08-19
uid Check Person (This is a take a look at crucial generation approach)
ssb 2048g / 7CB6CABD 2009-08-19

Importing and Exporting Keys

To oput armored or ASCII of public important to the display screen

gpg -a -export

To dump the ASCII of community critical to a file, use -o

gpg -o filename -a -export

Be aware: Immediately after import / export has been executed, encrypts / decrypts / signings / verifications can consider position

To confirm the fingerprints of the keys

gpg -fingerprint keyID

(gpg -fingerprint 7CB6CABD)

Encryption

GPG supports the two symmetric and uneven encryption. In the next illustration, we will encrypt some textual content and then send to our spouse who will decrypt it with the crucial we will share with him

echo “This is a extremely top secret concept”> magic formula_file.txt

Now we require to encrypt secret_file.txt. It will request me for a passphrase we require to place in two times
gpg -c magic formula_file.txt
Enter passphrase:

This is will end result key_file.txt.gpg. If I cat this file, I will see gibberish

cat magic formula_file.txt.gpg
: ???
P = G:? = B

Source by Amjad Saleem

Don't miss out!
Subscribe To Newsletter

Receive top technical news, lesson ideas, travel tips and more!

Invalid email address
Give it a try. You can unsubscribe at any time.

Spread the love
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

LEAVE A REPLY

Please enter your comment!
Please enter your name here