https://github.com/prongbang/android-secure-storage
Android Secure Storage provides an API to securely store sensitive data.
https://github.com/prongbang/android-secure-storage
Last synced: 6 months ago
JSON representation
Android Secure Storage provides an API to securely store sensitive data.
- Host: GitHub
- URL: https://github.com/prongbang/android-secure-storage
- Owner: prongbang
- License: mit
- Created: 2024-07-28T09:44:47.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-28T10:30:31.000Z (about 1 year ago)
- Last Synced: 2025-03-25T22:52:03.602Z (7 months ago)
- Language: Kotlin
- Homepage:
- Size: 108 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# android-secure-storage
Android Secure Storage provides an API to securely store sensitive data.
[](https://jitpack.io/#prongbang/android-secure-storage)
## Setup
- `build.gradle`
```groovy
buildscript {
repositories {
maven { url 'https://jitpack.io' }
}
}
```- `settings.gradle`
```groovy
dependencyResolutionManagement {
repositories {
maven { url 'https://jitpack.io' }
}
}
```- `app/build.gradle`
```groovy
implementation 'com.github.prongbang:android-secure-storage:1.0.2'
```## How to use
```kotlin
val androidSecureStorage = AndroidPreferencesSecureStorage.newInstance(context)
```- Write
```kotlin
val message = "Android Secure Storage"
androidSecureStorage.write("key", message)
```- Contains Key
```kotlin
val found = androidSecureStorage.containsKey("key")
```- Read
```kotlin
val value = androidSecureStorage.read("key")
```- Read All
```kotlin
val values = androidSecureStorage.readAll()
```- Delete
```kotlin
androidSecureStorage.delete("key")
```- Delete All
```kotlin
androidSecureStorage.deleteAll()
```