PatilShreyas / bytemask

Android Gradle Plugin that masks secret strings for the app in the source code making it difficult to extract from reverse engineering.
https://patilshreyas.github.io/bytemask/
Apache License 2.0
244 stars 8 forks source link

javax.crypto.BadPaddingException: error:1e000065:Cipher functions:OPENSSL_internal:BAD_DECRYPT #20

Open wicaodian opened 4 months ago

wicaodian commented 4 months ago

The app is working fine in Android Studio but when released in internal testing it shows this error

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.company.myapp/com.company.myapp.MainActivity}: javax.crypto.BadPaddingException: error:1e000065:Cipher functions:OPENSSL_internal:BAD_DECRYPT

I am using this configuration


android {
    signingConfigs {
        create("release") {
            // Configure signing
        }
    }
}
bytemaskConfig {
    // ...
    configure("release") {
        enableEncryption.set(true)

        // This will pick signing info directly from the `android.signingConfigs`.
        encryptionKeySource.set(KeySource.SigningConfig(name = "release"))
    }

```}
BelooS commented 2 months ago

Same for us, the crash appeared in production:

изображение

It is flaky, because we can not reproduce it by testing locally.

Because of that, i'm afraid, the plugin is not production ready affected version: dev.shreyaspatil.bytemask:gradle-plugin:1.0.0-beta01