Skip to content

the-best-is-best/kmm-crypto

Repository files navigation

KMM Crypto


This package for encrypt or decrypt data in kotlin multiplatform


Maven Central

KMM Crypto is available on mavenCentral().

implementation("io.github.the-best-is-best:kmm-crypto:2.0.0")

✅ **Install via SPM

You can install IOSCrypto directly using Swift Package Manager (SPM) from:
🔗 IOSCryptoManager-iOS on GitHub

How to use it

First in androidMain

AndroidKMMCrypto.init("key0") // add alias key name

Second how in common make save data

val kmmCrypto = KMMCrypto()
kmmCrypto.saveData(
    "test",
    "group",
    "Any data here"
)

Third how in common load data

val scope = rememberCoroutineScope()
val kmmCrypto = KMMCrypto()
scope.launch {
    val data = kmmCrypto.loadData("test", "group")
}

Third how in common delete data

val scope = rememberCoroutineScope()
val kmmCrypto = KMMCrypto()
scope.launch {
    kmmCrypto.deleteData("test", "group")
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors