wirecardBrasil / moip-encryption-sdk-android

Cliente Android para integração com as APIs v2 Moip, possibilita a criptografia de dados sensíveis de cartão de crédito.
20 stars 6 forks source link

Provider SC does not provide RSA #13

Closed JulioCRFilho closed 3 years ago

JulioCRFilho commented 3 years ago

Just deployed my application for test distribution and for my surprise I got this error: java.security.NoSuchAlgorithmException: Provider SC does not provide RSA/None/PKCS1Padding at javax.crypto.Cipher.createCipher(Cipher.java:738)

This only happens when I generate the apk for distribution. When I run the app in any mode directly from the Android Studio it works fine.

I already verified the line Security.addProvider(BouncyCastleProvider()) and it's there.

Any idea why this happens? Any permission I must add to AndroidManifest?