在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):netguru/Kissme开源软件地址(OpenSource Url):https://github.com/netguru/Kissme开源编程语言(OpenSource Language):Kotlin 68.7%开源软件介绍(OpenSource Introduction):Kissme: Kotlin Secure Storage MultiplatformKissme is an open-source library providing encrypted key-value storage. It can be integrated seamlessly in Kotlin projects built with Kotlin Multiplatform, Kotlin/Native, and Kotlin Android plugins. Kissme allows storing key-value data in common code modules without any additional boilerplate code. Currently library supports the following platforms:
DownloadTo use this library in your project, add Netguru and Binryprefs maven urls to the repositories block: repositories {
maven { url 'https://dl.bintray.com/netguru/maven/' }
maven { url "https://jitpack.io" }
} Then add following dependencies to the common module build.gradle: sourceSets {
commonMain {
dependencies {
implementation 'com.netguru.kissme:common:0.2.5'
}
}
androidMain {
dependencies {
implementation 'com.netguru.kissme:android:0.2.5'
}
}
iosMain {
dependencies {
implementation 'com.netguru.kissme:ios:0.2.5'
}
}
} Remember to enable enableFeaturePreview('GRADLE_METADATA') UsageJust start with creating an instance of val storage = Kissme(name = "my_secret_storage") The
If you want to store something, just call: storage.putString(key = "someKey", value = "value") If you want to get stored value - use: storage.getString(key = "someKey", defaultValue = "default") All You can get all keys stored in storage.getAll() You can check if storage.contains(key = "someKey") You can also remove selected key from storage: storage.remove(key = "someKey") Last, but not least, you can remove all data stored in storage.clear() About
AndroidAndroid implementation uses binaryprefs library under the hood in order to provide a robust key-value storage mechanism.
The keys and values are encrypted using XOR and AES encryption accordingly. The data encryption and encryption keys storing generating mechanisms are fully automated and is applied to the stored data by default. All the encryption keys are stored in the Android In order to acquire the application iOSThe iOS implementation is using native iOS Running sample appSample app uses Maven Local for resolving
Development roadmap
Kissme is an open source project developed and maintained by Kotlin community. Feel free to contribute to the project. LicenseCopyright 2018 Netguru Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论