Skip to content

Instantly share code, notes, and snippets.

@flschweiger
Created October 29, 2016 09:52
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 flschweiger/037807532097e6e8cf0ec4c2b2098b8d to your computer and use it in GitHub Desktop.
Save flschweiger/037807532097e6e8cf0ec4c2b2098b8d to your computer and use it in GitHub Desktop.
Adding authentication.
builder
.setKeySize(256)
.setBlockModes(KeyProperties.BLOCK_MODE_CBC)
.setEncryptionPaddings(KeyProperties.ENCRYPTION_PADDING_PKCS7)
.setUserAuthenticationRequired(true)
.setUserAuthenticationValidityDurationSeconds(30);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment