Skip to content

Instantly share code, notes, and snippets.

@smokelaboratory
Created March 13, 2020 06:26
Show Gist options
  • Select an option

  • Save smokelaboratory/0c6e6a7da8f229bd6fed6b9a3bf22e08 to your computer and use it in GitHub Desktop.

Select an option

Save smokelaboratory/0c6e6a7da8f229bd6fed6b9a3bf22e08 to your computer and use it in GitHub Desktop.
JetSec encrypted file object
encryptedFile = EncryptedFile.Builder(
secretFile,
applicationContext,
MasterKeys.getOrCreate(MasterKeys.AES256_GCM_SPEC), //master key
EncryptedFile.FileEncryptionScheme.AES256_GCM_HKDF_4KB
)
.setKeysetAlias("file_key") //optional
.setKeysetPrefName("secret_file_shared_prefs") //optional
.build()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment