Giter Club home page Giter Club logo

Comments (10)

icemc avatar icemc commented on June 12, 2024 1

@yanokwa I think waiting for the fix to be ported to Java 6/7/8 will be preferable. Meanwhile I will look for another issue to work on.

from briefcase.

getodk-bot avatar getodk-bot commented on June 12, 2024

Comment by mitchellsundt
Thursday Jul 09, 2015 at 19:01 GMT


Needs a full ODK team discussion to decide.

Reported by wbrunette on 2012-08-22 05:02:48

  • Labels added: Type-Enhancement, Briefcase, Collect
  • Labels removed: Type-Defect

from briefcase.

yanokwa avatar yanokwa commented on June 12, 2024

I believe that as of Java 9, unlimited strength JCE policy files are no longer needed. There is sample code here: https://stackoverflow.com/a/39872144/152938

And it looks like the change has been backported to Java 6, 7, and 8 at https://bugs.openjdk.java.net/browse/JDK-8170157

If this is indeed the case, then fixing this issue could be as simple as added the following line of code: Security.setProperty("crypto.policy", "unlimited");

But I could be wrong! So follow the links above and confirm. If you agree, then implement the change and to help test your change, I have an encrypted form at https://nafundi-test.appspot.com. Use your copy of Briefcase to connect to it using test/test as username/password. Export and use the following private_key.txt.

Try the export on these cases:

  • Without the JCE (it should fail)
  • With the JCE (it should work)
  • With the above code and with the JCE (it should work)
  • With the above code and without the JCE (it should work)

from briefcase.

yanokwa avatar yanokwa commented on June 12, 2024

@jpknox If you are looking for another contribution to Briefcase, this might be a good one. Comment below @opendatakit-bot claim to claim it.

from briefcase.

yanokwa avatar yanokwa commented on June 12, 2024

After further examination, it looks like the backporting has not been finished. See the activity here:

from briefcase.

icemc avatar icemc commented on June 12, 2024

@yanokwa i would like to work on this, as it would easily get me started with the changes made so far. Cheers

from briefcase.

yanokwa avatar yanokwa commented on June 12, 2024

Long time no see, @icemc! Welcome back.

I should have been clearer with my comment. Because the backporting of unlimited JCE to Java 6/7/8 has not finished, I don't think there is a straightforward fix.

And unless you can think of a straightforward fix, I think we should wait a few months and let the Java community backport the Java 9 changes to Java 6/7/8.

from briefcase.

rockydcoder avatar rockydcoder commented on June 12, 2024

Update - the fix has been ported to Java 6/7/8 as is evident if you follow the links above.
But I recently tried to decrypt an encrypted form on Java 8 and it had the same issue mentioned above.

But according to @yanokwa ,

fixing this issue could be as simple as added the following line of code: Security.setProperty("crypto.policy", "unlimited");

Am I right?

from briefcase.

ggalmazor avatar ggalmazor commented on June 12, 2024

I can confirm that with Java 1.8.0_161 there no need to install the JCE

from briefcase.

yanokwa avatar yanokwa commented on June 12, 2024

Confirmed as well with Java 1.8.0_162 on macOS and Windows!

from briefcase.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.