xxfast / KStore

A tiny Kotlin multiplatform library that assists in saving and restoring objects to and from disk using kotlinx.coroutines, kotlinx.serialisation and kotlinx.io
https://xxfast.github.io/KStore/
Apache License 2.0
538 stars 18 forks source link

Support for encryption #88

Open yuvaraj119 opened 8 months ago

yuvaraj119 commented 8 months ago

Storing the file as encrypted.

percy-g2 commented 1 month ago

@xxfast , I have a proposal for an enhancement where we encrypt JSON data using secp256k1. The decryption key can either be cached or provided by the user. I have a working sample that supports encryption and decryption across all platforms. You can read more about secp256k1 here: https://en.bitcoin.it/wiki/Secp256k1. Let me know if you'd like me to provide pseudocode or a working example!