encfs
encfs copied to clipboard
[Question] Can I decrypt single files?
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.
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.