Unable to export/decrypt using Briefcase: Pad block corrupted

Dear all,

I am having trouble decrypting some data. Export using ODK Briefcase fails with the following error message:
Starting Export...
Processing instance: uuid03fd0bf4-639f-4135-8e8d-5ddc4e17e5d3
Error decrypting submission uuid03fd0bf4-639f-4135-8e8d-5ddc4e17e5d3 Cause: org.opendatakit.briefcase.model.FileSystemException: Error decrypting:submission.xml.enc Cause: java.io.IOException: javax.crypto.BadPaddingException: pad block corrupted
FAILED!

I had test-run the same questionnaire before with no trouble decrypting it.

What could be the problem?

Thanks in advance for any hints and help
Andrea

If you are using software built and maintained by some other team (i.e.,
not the ODK Collect on https://opendatakit.org and/or not the "ODK Collect"
available on Google Play), then you should contact that other team first.

What is the Android OS on your device?

I assume you are using the very latest ODK Collect and ODK Briefcase (and
not a variant built or supplied by someone else?)

There was an issue circa 1.4 with encryption:

https://code.google.com/p/opendatakit/wiki/CollectReleaseNotes#rev_1036
https://code.google.com/p/opendatakit/wiki/ODKBriefcase#Briefcase_1.4_Production
https://code.google.com/p/opendatakit/issues/detail?id=918

Note that the partial fix for that was to only encrypt forms when
BouncyCastle encryption is found on the device. It may be that you have a
device / Android OS version that does not have that library.

After pulling the forms to your computer using ODK Briefcase, you can
confirm whether the submission is encrypted or not by using a text editor
(e.g., Notepad++) to view the content of the xml files. These are located
under, e.g.,

C:\Users\Administrator\ODK Briefcase
Storage\forms\YOUR_FORM_TITIE\instances\INSTANCE_ID

You can look at the submission.xml for a survey that can be decrypted and
compare that to one that has this error.

ยทยทยท On Tue, Mar 10, 2015 at 1:41 AM, wrote:

Dear all,

I am having trouble decrypting some data. Export using ODK Briefcase fails
with the following error message:
Starting Export...
Processing instance: uuid03fd0bf4-639f-4135-8e8d-5ddc4e17e5d3
Error decrypting submission uuid03fd0bf4-639f-4135-8e8d-5ddc4e17e5d3
Cause: org.opendatakit.briefcase.model.FileSystemException: Error
decrypting:submission.xml.enc Cause: java.io.IOException:
javax.crypto.BadPaddingException: pad block corrupted
FAILED!

I had test-run the same questionnaire before with no trouble decrypting it.

What could be the problem?

Thanks in advance for any hints and help
Andrea

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com