Skip to content

Instantly share code, notes, and snippets.

@dinorahto
Last active January 9, 2021 23:10
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 dinorahto/a445dc1b964e980c5e9e52140bfc4978 to your computer and use it in GitHub Desktop.
Save dinorahto/a445dc1b964e980c5e9e52140bfc4978 to your computer and use it in GitHub Desktop.
// Release Candidate option
val keyGenParameterSpec = MasterKeys.AES256_GCM_SPEC
val masterKeyAlias = MasterKeys.getOrCreate(keyGenParameterSpec)
// Alpha option
val masterKeyAvailable = MasterKey
.Builder(application.applicationContext)
.setKeyScheme(MasterKey.KeyScheme.AES256_GCM)
.build()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment