Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

PrefValueEncryptionScheme

class PrefValueEncryptionScheme
kotlin.Any
   ↳ kotlin.Enum<androidx.security.crypto.EncryptedSharedPreferences.PrefValueEncryptionScheme>
   ↳ androidx.security.crypto.EncryptedSharedPreferences.PrefValueEncryptionScheme

The encryption scheme to encrypt values.

Summary

Enum values

Pref values are encrypted with AES256-GCM.

Enum values

AES256_GCM

enum val AES256_GCM : EncryptedSharedPreferences.PrefValueEncryptionScheme

Pref values are encrypted with AES256-GCM. The associated data is the encrypted pref key. For more information please see the Tink documentation: AeadKeyTemplates.AES256_GCM