Skip to content

STORAGE_TYPE ​

Enum representing cryptographic storage types for sensitive data.

Security Level Categories:

  1. High Security (Biometric Authentication Required):
  • AES_GCM: For sensitive local data (passwords, personal info)
  • RSA: For asymmetric operations (signatures, key exchange)
  1. Medium Security (No Authentication):
  • AES_GCM_NO_AUTH: For app-level secrets and cached data
  1. 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 ​

enums.ts:117


AES_GCM ​

ts
AES_GCM: "KeystoreAESGCM";

AES-GCM encryption with biometric authentication. Requires user authentication for both encryption and decryption operations.

Defined in ​

enums.ts:127


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 ​

enums.ts:122


RSA ​

ts
RSA: "KeystoreRSAECB";

RSA encryption with biometric authentication. Uses asymmetric encryption and requires biometric authentication.

Defined in ​

enums.ts:132