Skip to content

Instantly share code, notes, and snippets.

@BDOMDev
Last active November 12, 2019 22:46
Show Gist options
  • Save BDOMDev/8c4ea5f4699cc8fd5b6e5944ae774f2e to your computer and use it in GitHub Desktop.
Save BDOMDev/8c4ea5f4699cc8fd5b6e5944ae774f2e to your computer and use it in GitHub Desktop.
private fun decryptEncryptedFile(): ByteArray {
val filePath = filesDir.absolutePath + "/filename"
val fileData = readFile(filePath)
val secretKey = getSecretKey(sharedPref)
return decode(secretKey, fileData)
}
@EMCP
Copy link

EMCP commented Nov 12, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment