Created
March 13, 2020 06:26
-
-
Save smokelaboratory/0c6e6a7da8f229bd6fed6b9a3bf22e08 to your computer and use it in GitHub Desktop.
JetSec encrypted file object
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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