Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

[Question brought here from the security section]

Is there any easy way I can decrypt a folder that has been encrypted with Windows 7? I am using Ubuntu 11.10 to decrypt the folder.

share|improve this question

2 Answers 2

up vote 3 down vote accepted

From wikipedia:

Files encrypted with EFS can only be decrypted by using the RSA private key(s) matching the previously-used public key(s). The stored copy of the user's private key is ultimately protected by the user's logon password. Accessing encrypted files from outside Windows with other operating systems (Linux, for example) is not possible — not least of which because there is currently no third party EFS component driver.

EFS - Encrypting File System - is native to Windows & Microsoft. Microsoft have not released this as opensource - and no-one (as yet) has clean reversed engineered this.

I'm afraid - the only way you will be to decrypt a windows 7 file and folder encrypted using native windows encryption is via windows itself.

share|improve this answer
Bummer... OK, thanks! –  Eduard Luca Dec 26 '11 at 23:03

Depends on what you encrypted the file with. LUKS, truecrypt, and gpg are all cross platform.


Truecrypt home page

Ubuntu wiki TrueCrypt

enter image description here


Windows - freeotfe

Ubuntu - To set up an encrypted partition in Ubuntu, using /dev/sda4 as an example,

sudo cryptsetup -h sha256 -c aes-cbc-essiv:sha256 -s 256 luksFormat /dev/hda5
sudo cryptsetup luksOpen /dev/hda5 crypt
mkfs.ext4 -m 0 /dev/mapper/crypt

Edit /etc/crypttab

# graphical
gksu gedit /etc/crypttab

#command line
sudo -e /etc/crypttab

Add a line for your crypt

crypt  /dev/hda4  none  luks,timeout=30

Now configure /etc/fstab

# graphical
gksu gedit /etc/fstab

#command line
sudo -e /etc/fstab

Again, add a line for your crypt in /etc/fstab

/dev/mapper/crypt  /media/crypt  ext4  user,noauto  0  2

Make a mount point

mkdir /media/crypt

Now you can mount it with

mount /media/crypt


GPG will run on both windows and Ubuntu


gpg -c file

Note: the gpg -c file command only encrypts the file, it does not delete the original source file, so you may need to (secure) delete it.


gpg file.gpg

For windows try gpg4win

share|improve this answer
I am not sure what program/algorithm Windows 7 is using (built-in) to encrypt files. I've tried the 3 programs you suggested but all gave me permission denied error. –  Eduard Luca Dec 26 '11 at 22:43
If you used the default windows encryption algorithm, I do not know a way to decrypt the file(s). As far as I know, you need to boot windows, decrypt the file(s) and use a cross-platform options. Perhaps someone else will know a better solution. –  bodhi.zazen Dec 26 '11 at 22:50

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.