Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Can I decrypt single files? #666

Open
berkan opened this issue Jul 20, 2023 · 1 comment
Open

[Question] Can I decrypt single files? #666

berkan opened this issue Jul 20, 2023 · 1 comment

Comments

@berkan
Copy link

berkan commented Jul 20, 2023

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.

@axet
Copy link

axet commented Jul 29, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants