Comments (3)
To be precise it happens here:
CipherSupplier.class
cipher.init(ciphermode, key, params);
return cipher;
} catch (InvalidKeyException var6) {
Caused by: java.security.InvalidKeyException: Illegal key size
at javax.crypto.Cipher.checkCryptoPerm(Cipher.java:1039)
at javax.crypto.Cipher.implInit(Cipher.java:805)
at javax.crypto.Cipher.chooseProvider(Cipher.java:864)
at javax.crypto.Cipher.init(Cipher.java:1396)
at javax.crypto.Cipher.init(Cipher.java:1327)
at org.cryptomator.cryptolib.common.CipherSupplier.forMode(CipherSupplier.java:65)
... 28 more
key size is 32 bytes (256bits) though. Verified in the debugger.
from cli.
Okay this is an issue Oracle Java not supporting AES-256 by default. I assume the GUI used a different JVM.
One needs these files
http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html
http://stackoverflow.com/questions/6481627/java-security-illegal-key-size-or-default-parameters
Afterwards the Oracle JVM has 256 bit AES support. Should be mentioned somewhere I assume but is actually no bug in Cryptomator.
And it is actually mentioned. Sometime reading the Docs just helps. But could terminate with a nice message I assume ;)
from cli.
There would actually be a different exception, if we updated CryptoLib in the CLI project :D
from cli.
Related Issues (20)
- Using FUSE causes one CPU core to be always at 100% usage HOT 1
- Add support for "--version" argument that causes the application to print its version and exit
- The official released jar file should be named simply "cryptomator-cli.jar" HOT 10
- Mounting via FUSE on Raspberry PI 4 (raspbianOS/debian) show all files as 0 bytes HOT 1
- Feature request: allow WebDAV URL as back-end HOT 2
- Windows 10: Error: Could not find or load main class .\cryptomator-cli-0.4.0.jar HOT 1
- Not compatible with last Cryptomator vault format. HOT 2
- Cryptomator-cli does not support newest vault version HOT 3
- Fuse mount results in Exception with version 0.5.0
- Integrate into rclone HOT 2
- Add --version Option
- Add --help Option
- Add Bash completion
- make a new release HOT 2
- Support Cryptomator Hub vaults
- Bug: fatal error when running on arm device? HOT 4
- Cryptomator for a single file HOT 2
- symlink don't work with mount using davfs
- Feature request: add support for mounting FUSE instead of WebDAV HOT 2
- Suggestion for how to continue with CLI HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cli.