encfs icon indicating copy to clipboard operation
encfs copied to clipboard

[Question] Can I decrypt single files?

Open berkan opened this issue 2 years ago • 1 comments

Hello

Apologies if this has a very obvious answer.

I'm wondering if I can manually decrypt individual files (without using encfs or encfsctl, but with eg openssl), assuming I have access to all the parameter values contained in the configuration file.

This is so that I can still work with my files even where encfs is not available, but openssl is (eg on iOS).

I tried this, without success:

$ openssl enc -d -aes-192-cbc -in encrypted_file -out decrypted_file -K "<encodedKeyData from the config file>" -iv $(echo -n "<saltData from the config file>" | base64 -d | xxd -p -c 256)

hex string is too long, ignoring excess
hex string is too long, ignoring excess
non-hex digit
invalid hex key value

Many thanks Berkan

PS: The answer to this question on Stackexchange from 8 years ago suggests that it may be possible, without specifying exactly how.

berkan avatar Jul 20 '23 10:07 berkan

I do not know how to do it. But first decrypt the keydata (first 4 bytes or keyData are CRC) then provide Salt and iv.

axet avatar Jul 29 '23 13:07 axet