You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got next error, when use encryption in Unit tests:
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 ru.bullyboo.encoder.methods.AES.encrypt(AES.java:179)
at ru.bullyboo.encoder.builders.BuilderAES.encryption(BuilderAES.java:97)
at ru.bullyboo.encoder.builders.BaseBuilder.encrypt(BaseBuilder.java:212)
Activity
BullyBoo commentedon Oct 9, 2017
show me ur key pls
eresid commentedon Oct 9, 2017
@BullyBoo
On Android works correct, only for Unit-tests does not work
BullyBoo commentedon Oct 16, 2017
@eresid
Yes, i don
t know why its happened.i tried to test this with unit tests, but it`s not workng.
You can see, that my lib has not unit tests, but has runtime tests))
You can find them in app/src/main/java/ru/bullyboo/encryption/tests
arronli commentedon Mar 8, 2018
the jre runtime maters, oracle limit the strength of encryption because america's law
maybe you could refer to this page
http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html