Ben Chuanlong Du's Blog

It is never too late to learn.

Tips on GPG

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

  1. Symmetric encryption (using passphrase).

    gpg -c file
    
  2. Decrypt a symmetric encrypted file. You will be prompt to enter your passphrase.

    gpg file.gpg
    
  3. You can use the following command to encrypt …

Algorithms and Tools for Encryption

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

  1. RSA is most widely used algorithm but is computationally expensive.

  2. A good compromise is to use RSA to encrypt the symmetric key that is then used in AES encryption of the …