EncryptedDataStore
It is a library that let you use an encrypted DataStore securily and easily.
Install / Use
/learn @mobidroid92/EncryptedDataStoreREADME
EncryptedDataStore
It is a library that let you use an encrypted DataStore securily and easily. Also you can customize encryption as your needs by implementing EncryptionHelper interface and pass it to EncryptedDataStore.
Compatibility
- Minimum Android SDK: 26
Setup
Add to your root build.gradle:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Add the dependency:
dependencies {
implementation 'com.github.mobidroid92:EncryptedDataStore:1.0.3'
}
Usage
val encryptedDataStore = EncryptedDataStore(applicationContext)
val key = stringPreferencesKey("key_name")
viewModelScope.launch {
encryptedDataStore.putString(key, "Hello World")
val storedValue = encryptedDataStore.getString(key).first()
}
- The instance of EncryptedDataStore has to be maintained as Singleton in your code.
Let me know!
I would be really happy if you sent me a links to your projects where you use my library. Just send an email to malbdour92@gmail.com and do let me know if you have any questions or suggestion.
About
Find me on LinkedIn: https://www.linkedin.com/in/mobidroid92/
Related Skills
node-connect
343.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
92.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.3kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
