Android Encryption

Android App performs encryption and decryption byte array using Android KeyStore

Requirement

  • RSA encryption
    • Android 4.3 (API 18) or later
  • AES encryption
    • Android 6.0 (API 23) or later

This is due to Android OS hardware restrictions. More details.

For other encryption options supported by Android, please see here.

Default encryption mode

  • RSA encryption
    • BlockMode : ECB
    • Padding : PKCS1Padding
  • AES encryption
    • BlockMode : CBC
    • Padding : PKCS7Padding

Libraries included in this project:

Screenshots

| | | |

GitHub

View Github