Skip to content

Instantly share code, notes, and snippets.

@tdcolvin
Created February 3, 2023 18:20
Show Gist options
  • Save tdcolvin/ac20b36e5e3dce48dc477600dc037d7a to your computer and use it in GitHub Desktop.
Save tdcolvin/ac20b36e5e3dce48dc477600dc037d7a to your computer and use it in GitHub Desktop.
private val mainKeyAlias by lazy {
// Although you can define your own key generation parameter specification, it's
// recommended that you use the value specified here.
val keyGenParameterSpec = MasterKeys.AES256_GCM_SPEC
MasterKeys.getOrCreate(keyGenParameterSpec)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment