Skip to content

Instantly share code, notes, and snippets.

@mage1k99
Created May 26, 2019 12:17
Show Gist options
  • Save mage1k99/9f98c696a18049a14ed84cf8f7cf1a93 to your computer and use it in GitHub Desktop.
Save mage1k99/9f98c696a18049a14ed84cf8f7cf1a93 to your computer and use it in GitHub Desktop.
Error Log generated by the method
2019-05-26 17:26:37.712 18345-18345/xo.chilout.justtry E/FirstThird Activity: cipherinitalize: InvalidKeyException
java.security.InvalidKeyException: Only SecretKey is supported
at com.android.org.conscrypt.OpenSSLCipher.checkAndSetEncodedKey(OpenSSLCipher.java:462)
at com.android.org.conscrypt.OpenSSLCipher.engineInit(OpenSSLCipher.java:284)
at javax.crypto.Cipher.tryTransformWithProvider(Cipher.java:2984)
at javax.crypto.Cipher.tryCombinations(Cipher.java:2891)
at javax.crypto.Cipher$SpiAndProviderUpdater.updateAndGetSpiAndProvider(Cipher.java:2796)
at javax.crypto.Cipher.chooseProvider(Cipher.java:773)
at javax.crypto.Cipher.init(Cipher.java:1143)
at javax.crypto.Cipher.init(Cipher.java:1084)
at xo.chilout.justtry.firstthird.cipherinitalize(firstthird.java:118)
at xo.chilout.justtry.firstthird.checkfingerprint(firstthird.java:83)
at xo.chilout.justtry.firstthird.onCreate(firstthird.java:68)
at android.app.Activity.performCreate(Activity.java:7145)
at android.app.Activity.performCreate(Activity.java:7136)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1272)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2933)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3088)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1818)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6745)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:495)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:859)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment