Created
June 4, 2022 00:05
-
-
Save ed-george/98ec9fca279f76c87bf478a002293bc1 to your computer and use it in GitHub Desktop.
Unpacking Android Security: Part 2 - Insecure Data Storage (Example 1)
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
val prefs = context?.getSharedPreferences("mySharedPrefFile", Context.MODE_PRIVATE) ?: return | |
// Store some credentials we might not want others to read | |
prefs.edit().putString("mySecretKey", "mySecretValue").apply() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment