How Do I Create a Password Encrypted File in Unix?
Contents

How do you password protect a File in Unix?

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 create a password encrypted document?

First, open the Office document you would like to protect. Click the File menu, select the Info tab, and then select the Protect Document button. Click Encrypt with Password. Enter your password then click OK.

James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest