![]() ![]() What is encryption? It is a process that encodes a message so that it can only be read by certain people. Hence we decided to store all the sensitive data in encrypted form using Encrypted Shared Preferences. As indiagold is a financial app, it contains some sensitive data that should always be encrypted. Initially, we were also using SharedPreferences in our indiagold app to store user and app data. Even an SQL query might fail sometimes, but never a shared preference. It’s fast, extremely easy to use (even easier with kotlin extension methods), and never fails. ANDROID MIGRATE SHARED PREFERENCES TO PREFERENCE MANAGER ANDROIDShared preferences have always been a favorite among Android developers. So lets understand some basics on encryption and what is the difference between shared preferences and encrypted shared preferences. It provides an implementation of the security best practices related to reading and writing data at rest, as well as key creation and verification. And the most complicated thing was where to store the encryption key and what algorithm should we use for encryption?īut things have completely changed with the native Encrypted Shared Preference library from the Android Jetpack. So we used to handle data encryption by creating our own classes and logics, which was a very complex process. Until now there was no native solution for data encryption to encrypt user data in your Android app. According to “Mobile Security Project” under “The Open Web Application Security Project (OWASP)” insecure data storage is one of the top ten security issues for smartphones because sensitive information can be exposed if not carefully protected. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |