Search code examples
encryptionfuse

Finding corresponding encrypted file on encfs


Hopefully a very simple question.

I have a read-only mount, and a encfs FUSE mount reads over that to decrypt the files. How do I know which encrypted file each decrypted file relates to?

For example: I want to delete a file, however won't be able to do that via the read-only filesystem. How do I know the true filename?

I am possibly looking for a more programmatic way of doing this


Solution

  • I found this is possible encfsctl. You can use encode function to turn the human readable name into the real path on the filesystem.

    $ ENCFS6_CONFIG='encfs6.xml' encfsctl encode /encfs/mountpoint readable/name/in/mountpoint
    EncFS Password: 
    decryptedname
    

    http://manpages.ubuntu.com/manpages/hardy/man1/encfsctl.1.html