Skip to main content

StorageCipherAlgorithm

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.

Inherits: enum.Enum

Properties

Properties

AES_CBC_PKCS7_PADDINGclass-attributeinstance-attribute

Legacy AES/CBC/PKCS7Padding for backwards compatibility.

AES_GCM_NO_PADDINGclass-attributeinstance-attribute

AES/GCM/NoPadding (API 23+).

This is the default and recommended storage cipher algorithm. Provides authenticated encryption with associated data (AEAD).