Created
June 26, 2019 08:27
-
-
Save BDOMDev/2bcd06c3d26cab742ad007dc0851407c to your computer and use it in GitHub Desktop.
Encrypt a file
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
fun encryptDownloadedFile(filePath: String) { | |
val fileData = readFile(filePath) | |
val secretKey = getSecretKey(sharedPref) | |
val encodedData = encode(secretKey, fileData) | |
saveFile(encodedData, filePath) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment