Last active
November 12, 2019 22:46
-
-
Save BDOMDev/8c4ea5f4699cc8fd5b6e5944ae774f2e to your computer and use it in GitHub Desktop.
This file contains 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
private fun decryptEncryptedFile(): ByteArray { | |
val filePath = filesDir.absolutePath + "/filename" | |
val fileData = readFile(filePath) | |
val secretKey = getSecretKey(sharedPref) | |
return decode(secretKey, fileData) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://gist.github.com/BDOMDev/8c4ea5f4699cc8fd5b6e5944ae774f2e#file-downloadactivity-kt-L5
should be
decrypt
I think, instead ofdecode