Skip to content

Instantly share code, notes, and snippets.

View NicolaVerbeeck's full-sized avatar

Nicola Verbeeck NicolaVerbeeck

  • Chimerapps
  • Belgium
View GitHub Profile
@NicolaVerbeeck
NicolaVerbeeck / EncryptedFileStorage.kt
Last active April 18, 2024 21:12
Encrypted file storage for data store
package com.a.b
import android.content.Context
import androidx.annotation.GuardedBy
import androidx.datastore.core.ReadScope
import androidx.datastore.core.Serializer
import androidx.datastore.core.Storage
import androidx.datastore.core.StorageConnection
import androidx.datastore.core.WriteScope
import androidx.datastore.core.use