Q42 / Qlassified-Android

An Android Wrapper Library for easy Keystore Encryption
MIT License
47 stars 13 forks source link

Not working with minifyEnable true #10

Open ghost opened 6 years ago

ghost commented 6 years ago

I have some problems with the release version of my app, when i activate minifyEnabled, the library stops working E/QlassifiedCrypto: Could not encrypt this string. Stacktrace: java.security.NoSuchAlgorithmException: Provider SC does not provide RSA/NONE/PKCS1Padding

Any ideas?

ghost commented 6 years ago

@RonEskinder did you have any luck getting this to work? I tried turning off minification for the libary usikng this proguard configuration: -keep class com.q42.qlassified.** { *; }.

This is not working for me, and I'm not sure why.

ghost commented 6 years ago

I did not, i switched to use another library

ghost commented 6 years ago

I found a solution for this. Include this rule in your ProGuard configuration:

-keep class org.spongycastle.** { *; }