Skip to content
This repository was archived by the owner on Mar 2, 2024. It is now read-only.

drilonrecica/secure-preferencesX

Repository files navigation

SecurePreferencesX

Build Status API License Open Source Love

Secure SharedPreferences wrapper for the new Jetpack Security solution

Note: This library is currently available as an alpha library and may be subject to sudden API breaks and changes between versions.

The SecurePreferencesX library is a wrapper around the new Security library, part of Android Jetpack, which provides an implementation of the security best practices related to reading and writing data at rest, as well as key creation and verification.

SecurePreferencesX abstracts the Security library so you only have to once initialize SecurePreferencesX with your app's packageName and a preferenceFileName and after that you can start storing and retrieving data from the SecurePreferences.

How to use the Library:

Initialize the library:

SecurePreferences.initSecurePreferences(packageName, "SecurePreferencesFileName")

Store value in SecurePreferencesX:

SecurePreferences.storeValue(context, "key", "value")

Retrieve value from SecurePreferencesX:

SecurePreferences.getValue(context, "key", "yourDefaultValue")

Important Information & Links:

About

Secure SharedPreferences wrapper for the new Jetpack Security solution

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages