top of page

COURSE 1  - 3.2.2.2. Symmetric encr. of files (Terminal)

<   >

QUICK INFO:

  • Symmetric encryption: single key; must be sent to receiver.


  • creating a text file from the Terminal

    • echo "Text included in the file" > file1.txt
  • command for symmetric encryption of file

    • gpg --symmetric --armor --cipher-algo AES256 file1.txt
  • command for decryption of file: 

    • gpg --decrypt file1.txt
  • command for encryption of multiple files in an archive

    • tar -czvf - file1.txt file2.txt file3.txt | gpg --symmetric --armor --cipher-algo AES256 --output name-of-archive.asc

How to encrypt a text with a simple password by using Kleopatra, a graphical user interface (gui) pre-installed in Tails:

bottom of page