StorageCipherAlgorithm
Inherits: Enum
Algorithm used to encrypt stored data on Android.
Modern applications should use AES_GCM_NO_PADDING for better security.
The legacy AES_CBC_PKCS7_PADDING is provided for backwards compatibility only.
Properties
-
AES_CBC_PKCS7_PADDING–Legacy AES/CBC/PKCS7Padding for backwards compatibility.
-
AES_GCM_NO_PADDING–AES/GCM/NoPadding (API 23+).
Properties#
AES_CBC_PKCS7_PADDING = 'AES_CBC_PKCS7Padding'
class-attribute
instance-attribute
#
Legacy AES/CBC/PKCS7Padding for backwards compatibility.
AES_GCM_NO_PADDING = 'AES_GCM_NoPadding'
class-attribute
instance-attribute
#
AES/GCM/NoPadding (API 23+).
This is the default and recommended storage cipher algorithm. Provides authenticated encryption with associated data (AEAD).