How Do I Encrypt a File in Unix?
Contents

How do I encrypt a file in Linux?

Using gpg, you would do the following.

  1. Open a terminal window.
  2. Change to the ~/Documents directory with the command cd ~/Documents.
  3. Encrypt the file with the command gpg -c important. docx.
  4. Enter a unique password for the file and hit Enter.
  5. Verify the newly typed password by typing it again and hitting Enter.

How do I manually encrypt a file?

How do I encrypt/decrypt a file?

  1. Start Explorer.
  2. Right click on the file/folder.
  3. Select Properties. …
  4. Under the General tab click Advanced.
  5. Check the ‘Encrypt contents to secure data’. …
  6. Click Apply on the properties.
  7. If you selected a file it will ask if you want to encrypt the parent folder to prevent the file from becoming unencrypted during modification.
Marcus Vance

Marcus Vance

Cybersecurity & Digital Privacy Researcher

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.

Share this article
Twitter Facebook Pinterest