Skip to content

Instantly share code, notes, and snippets.

@hafizrahman
Created December 8, 2019 07:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hafizrahman/aac483750d7fecde97b25e5c6b07dbd9 to your computer and use it in GitHub Desktop.
Save hafizrahman/aac483750d7fecde97b25e5c6b07dbd9 to your computer and use it in GitHub Desktop.
Example of how to use a constant variable
val sharedPreferences = EncryptedSharedPreferences.create(
WPFC_SHARED_PREFS_FILENAME,
masterKeyAlias,
this,
EncryptedSharedPreferences.PrefKeyEncryptionScheme.AES256_SIV,
EncryptedSharedPreferences.PrefValueEncryptionScheme.AES256_GCM
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment