11

I am using PBEWITHSHA256AND256BITAES-CBC-BC to encrypt binary data which contains sensitive user data

I just want to confirm if BouncyCastle is part of every Android SDK after (2.1) as I read a on a few sites that BouncyCastle is not part of every Android SDK.

Would like a definitive answer

tomerpacific
  • 4,704
  • 13
  • 34
  • 52
user964283
  • 853
  • 4
  • 11
  • 16

3 Answers3

12

You can also try the SpongyCastle library which is a precompiled build of BouncyCastle but tested with Android.

https://github.com/rtyley/spongycastle

  • If you're interested in SpongyCastle, it hasn't been updated since v1.58 whereas BouncyCastle is currently on v1.62. You can build your own SC/BC jar for Android from BC sources using "mybc". Link to my GitHub repo: https://github.com/jbuhacoff/nodejs-mybc-util – jbuhacoff Jul 14 '19 at 05:29
1

BouncyCastle is not a part of Android SDK. You can download it separately and add it to your project.

In this article you can fine guid how to do it.

Community
  • 1
  • 1
alxndr
  • 2,349
  • 3
  • 17
  • 14
0

BouncyCastle modified version is a part of Android SDk.

Android includes a modified version of the Bouncy Castle Api.