Closed aefo closed 12 years ago
Yeah it is a PITA to keep installing those files every time I update the Sun JDK. Good point about adding this to the README.md. I will definitely do that.
Thanks,
Perhaps a seperate issue for the future, but FYI, it looks as if using BouncyCastle (http://www.bouncycastle.org/java.html) directly should allow avoiding needing to change the policy files. The policy restrictions are enforced by the JCE not by the provider implementation, so creating the ciphers directly would skip that. (Trading easier / portable deployment for implementation dependency, but that dependency could probably be hidden away...).
I've added the comments you've suggested to README.md
I've considered using BouncyCastle when I started implementing this library. It didn't work out too well for me, because I'm actually implementing this library for an Android application, and I remember reading somewhere that it isn't straightforward to use BouncyCastle under Android. That might not be the case though, since I've never tried. Patches welcome :)
Great, thanks.
Yes, there are problems with android having an old version of BC packaged with it. The solution is to use SpongyCastle. This is a simple repackage of BC to change the package names so that they don't conflict so works on android.
Andrew
From: mrpdaemon reply@reply.github.com Sent: Fri Dec 16 09:54:14 GMT 2011 To: aormerod aefo@ormerods.net Subject: Re: [encfs-java] Add comment in the README.md to advise people of installing Unlimited Strength Jurisdiction Policy Files (#2)
I've added the comments you've suggested to README.md
I've considered using BouncyCastle when I started implementing this library. It didn't work out too well for me, because I'm actually implementing this library for an Android application, and I remember reading somewhere that it isn't straightforward to use BouncyCastle under Android. That might not be the case though, since I've never tried. Patches welcome :)
Reply to this email directly or view it on GitHub: https://github.com/mrpdaemon/encfs-java/issues/2#issuecomment-3175345
I was running it locally & getting an "Illegal key size" error (as my key length was 256-bit AES). I needed to install the Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files
http://www.oracle.com/technetwork/java/javase/downloads/jce-6-download-429243.html
It would be helpful for a note to be included in README.md for people getting started.