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

Decryption after re-encryption does not work #84

Open
tobiasneidig opened this issue Dec 18, 2015 · 7 comments
Open

Decryption after re-encryption does not work #84

tobiasneidig opened this issue Dec 18, 2015 · 7 comments

Comments

@tobiasneidig
Copy link

Hi there,

when opening an encrypted file (for example .xlsx) on my phone, everything works fine, after saving the changed file, encdroid re-encrypts the file and uploads it to dropbox.
But when I try reopening the file out of encdroid I am getting
org.mrpdaemon.sec.encfs.EncFS CorruptDataException: Block MAC mismatch. Even on my desktop I cannot open the file (corrupt file).
Does anyone has an idea?

@tobiasneidig tobiasneidig changed the title Encryption after decryption does not work Decryption after re-encryption does not work Dec 18, 2015
@b-schliessmann
Copy link

b-schliessmann commented May 10, 2016

Hi,

I'm experiencing a similar issue. After reading PDFs with the Adobe Reader app (which always seems to change them in the process), the files are re-uploaded automatically by Encdroid, yielding the same error -- corrupt PDFs! Luckily, mupdf's mutool clean could repair them. Freshly uploading files from inside Encdroid also produces corrupt files. Flop :(

@mi1n
Copy link

mi1n commented May 24, 2016

Hi,
This seems to be an issue in combination with the Adobe Reader app..... When changing to another PDF-Editor (e.g. .xodo pdf reader - which also allows editing), files are encrypted and uploaded again after editing. So far i have not seen issues .....

Is this project still active? The app hasn't been updated in a while ;(

@mrpdaemon
Copy link
Owner

I haven't had time to work on this project for a while, but I do intend to work on it in the near future. I already have some unreleased commits merged to master already (material theme etc.) - stay tuned!

Re: the Adobe Reader interaction, I will try to figure out what is going on.

@borisbrodski
Copy link

May be releated to this: #87

@ashjas
Copy link
Contributor

ashjas commented Nov 14, 2016

I verified importing and exporting/ opening after modification docx files , but i did not face any such issue.
on 2 seperate devices, android 7.1.1(drive) and 4.3(dropbox).
Are you sure you are getting this everytime? if so, a logcat log could be helpful.
Edit: after referring to #87 , when i test the same with paranoia mode volume created on ubuntu encfs v1.8.1 (and placing it on dropbox, and importing again as dropbox volume in encdroid) , the issue gets reproduced.
Intrestingly, if i use local storage of same volume(one in paranoia mode) in encdroid, things work fine!

@goodger
Copy link

goodger commented Dec 7, 2016

I'm getting a similar issue, with text files. I'm using Encdroid with Dropsync and DroidEdit on Android (5.0), encfs on Linux (Ubuntu 16.04.1), and EncFSMP on Windows 7; Dropbox to sync my EncFS volume between platforms.

Here's the error on Android:
org.mrpdaemon.sec.encfs.EncFS CorruptDataException: Block MAC mismatch

Here's the error on Windows:
Error during read operation, file: \poker\games-hosting\2016-12-09 Friday.txt, details: Assert failure at f:/Projects/encfsMP/src/encfs/MACFileIO.cpp:225 -- MAC comparison failure, refusing to read

@mrpdaemon
Copy link
Owner

I will try to reproduce this myself too - but it would help me if folks who can reproduce this can send me the configuration in .encfs6.xml so I can see what volume configuration options were used. I'll try with encfs paranoia mode.

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

7 participants