STORAGE_TYPE
Enum representing cryptographic storage types for sensitive data.
Security Level Categories:
- High Security (Biometric Authentication Required):
- AES_GCM: For sensitive local data (passwords, personal info)
- RSA: For asymmetric operations (signatures, key exchange)
- Medium Security (No Authentication):
- AES_GCM_NO_AUTH: For app-level secrets and cached data
- Legacy/Deprecated:
- AES_CBC: Outdated, use AES_GCM_NO_AUTH instead
Platform
Android
Enumeration Members
AES_CBC
ts
AES_CBC: "KeystoreAESCBC";AES encryption in CBC (Cipher Block Chaining) mode. Provides data confidentiality without authentication.
Deprecated
Use AES_GCM_NO_AUTH instead.
Defined in
AES_GCM
ts
AES_GCM: "KeystoreAESGCM";AES-GCM encryption with biometric authentication. Requires user authentication for both encryption and decryption operations.
Defined in
AES_GCM_NO_AUTH
ts
AES_GCM_NO_AUTH: "KeystoreAESGCM_NoAuth";AES encryption in GCM (Galois/Counter Mode). Provides both data confidentiality and authentication.
Defined in
RSA
ts
RSA: "KeystoreRSAECB";RSA encryption with biometric authentication. Uses asymmetric encryption and requires biometric authentication.