ODK decryption via ODK Briefcase

Hi guys i am failing to do decryption using odk briefcase, on the export
tap after running odk briefcase
the form field what exactly am i supposed to put there, because it seems to
be taking the form name.

Does it just use the form name and decrypt all the data in the database?

even if i put the form name i get an error that says:

Starting Export...
Processing instance: uuidf6ec1e60-274e-4441-a707-01f57eef05f0
Error decrypting submission uuidf6ec1e60-274e-4441-a707-01f57eef05f0 Cause:
org.opendatakit.briefcase.model.CryptoException: Error decrypting
base64EncryptedKey Cause: javax.crypto.BadPaddingException: data hash wrong
FAILED!

i am thinking its saying my keys do no match but i used this to generate my
private and public keys:
(got the information about key generation from here:
http://opendatakit.org/help/encrypted-forms/)

openssl genpkey -out MyPrivateKey.pem -outform PEM -algorithm RSA -pkeyopt rsa_keygen_bits:2048

openssl rsa -in MyPrivateKey.pem -inform PEM -out MyPublicKey.pem -outform PEM -pubout

and the keys i get are the ones i use.

thanks

If you are directly retrieving data from the phone, it may be that you have
an incomplete submission that has been copied into ODK Briefcase (it copies
all submissions, not just the ones that are finalized and encrypted).

Browse into the ODK Briefcase Storage directory, under the
forms/your-form-name/instances directory, and hopefully you will find a
directory labelled 'uuidf6ec1...'. In that folder, look at the .XML file.
Is it a descriptor of the encrypted data? Or is it your raw data, not yet
encrypted?

If it is raw data, it was not finalized on the device, but copied in its
raw state to Briefcase. You should simply delete the entire directory.

Mitch

ยทยทยท On Wed, May 15, 2013 at 1:56 AM, Coulson Thabo Kgathi wrote:

Hi guys i am failing to do decryption using odk briefcase, on the export
tap after running odk briefcase
the form field what exactly am i supposed to put there, because it seems
to be taking the form name.

Does it just use the form name and decrypt all the data in the database?

even if i put the form name i get an error that says:

Starting Export...
Processing instance: uuidf6ec1e60-274e-4441-a707-01f57eef05f0
Error decrypting submission uuidf6ec1e60-274e-4441-a707-01f57eef05f0
Cause: org.opendatakit.briefcase.model.CryptoException: Error decrypting
base64EncryptedKey Cause: javax.crypto.BadPaddingException: data hash wrong
FAILED!

i am thinking its saying my keys do no match but i used this to generate
my private and public keys:
(got the information about key generation from here:
http://opendatakit.org/help/encrypted-forms/)

openssl genpkey -out MyPrivateKey.pem -outform PEM -algorithm RSA -pkeyopt rsa_keygen_bits:2048

openssl rsa -in MyPrivateKey.pem -inform PEM -out MyPublicKey.pem -outform PEM -pubout

and the keys i get are the ones i use.

thanks

--

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/groups/opt_out.

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