Navigation:Documentation:Other:Link Collection:~~CLOUD:30~~ |
Table of Contents
About ntfsdecryptntfsdecrypt is a tool for decrypting files that are encrypted using NTFSs ability of encryption a.k.a $EFS. It is part of ntfsprogs as the “make extra” set of utilities. ntfsdecrypt is not finished at this stage. If it is not working, please send the exact error message to the linux-ntfs-dev mailing list. What can it do?Once you have direct access to the volume (you are either root/disk or Administrator (if you use cygwin)) and have a private key of some user that is eligible of reading the file, or of a recovery agent that was configured at the time of the last modification of the file, it can decrypt the contents of the file. NTFS supports a variety of ciphers for $EFS encryption. However the Windows driver only allows only the following ciphers:
How to use ntfsdecryptPreparationsFirst of all you need to get the private key.
The password is needed for two proposes:
Second, you need to build ntfsdecrypt. Use the building from source HowTo document for doing that. Note that you need to configure ntfsprogs with ”./configure –enable-crypto” and run make with the “make extra” target. ntfsdecrypt invocationntfsdecrypt -k /your/path/to/file_name.pfx /dev/hda5 "dir1/dir2/my crypted file.txt"
You will now see the decrypted file contents on stdout. If you wanted to copy them to a file, then run the above command with redirection of stdout to a file, i.e.: ntfsdecrypt -k file.pfx /dev/hda5 encrypted.file > ~/decrypted.file Troubleshooting/Error messagesWrong pfx passwordIf you get the following error message, you have not entered the correct password for the pfx file: Failed to verify the MAC (The Message Authentication Code verification failed.). Is the password correct? Failed to extract the private RSA key. Did you perhaps mistype the password?
Not an encrypted fileIf you get the following error message, you should use ntfscat instead: Failed to open $EFS attribute: No such file or directory Failed to obtain file encryption key. Aborting. File not existIf you get the following error message, you have not typed the correct file path and name. Failed to open encrypted file. Aborting.
Known problems
|