Programming/Android
Android SharedPreferences 암호화 랩퍼
brent.lee
2013. 12. 17. 16:23
반응형
Encryption Wrapper for Android SharedPreferences
프리퍼런스 관련 래핑 클래스를 찾다보니 암호화 기능까지 잘 정리된 클래스인듯...
http://www.codeproject.com/Articles/549119/Encryption-Wrapper-for-Android-SharedPreferences
Using the code
As you may already know, there are 3 methods to initialize a SharedPreferences object:
- Context.getSharedPreferences(String name, int mode)
- Activity.getPreferences(int mode)
- PreferenceManager.getDefaultSharedPreferences(Context context)
The class in this article accepts a Context object and uses the 3rd approach internally, so instead of the above you should do the following (where this
is your app's Activity, Service, etc.):
..
반응형