How do I encrypt/decrypt a file?

John Savill

January 8, 2000

1 Min Read
ITPro Today logo in a gray background | ITPro Today

A. Encrypting and compressing a file/folder is mutually exclusive, youcan encrypt a file or compress it, not both.

To decrypt a file perform the following:

  1. Start Explorer

  2. Right click on the file/folder

  3. Select Properties
    Click here to view image

  4. Under the General tab click Advanced

  5. Check the 'Encrypt contents to secure data'. Click OK

  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. Click OK If you selected a folder if will ask if you want to encrypt subfolders and files also. Click OK.

  8. Click OK to the main dialog

To decrypt repeat the above but unselect the box. If you decrypt a folder itwill ask if you also want to decrypt all child folders and files.

Compression of an encrypted file will not save in most case. Encrypt compressed file makes sense.There is a technical issue here. It is not because of reparse point. Neither compression nor encryption uses reparse point. Thereason we do not support both is backuprestore. We provide a way for backup operator to backup encrypted file. The operator has no way to read thefile in plaintext. The NTFS compression result depends on the disk cluster. If the backup source and the restore destination has the different clustersize, NTFS could not restore the encrypted data because NTFS does not know how to understand the data.

Sparse and encryption.
Encryption is compatible with sparse. In other words, you can encrypt a sparse file and still keep it a sparse file.

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like