Update readme, add kotlin dev, so current coroutines stdlib (eap-83) can be resolved
This commit is contained in:
parent
d11d4e7fb0
commit
9a1073e1c1
44
README.md
44
README.md
@ -5,25 +5,31 @@
|
|||||||
|
|
||||||
Kotlin Multiplatform Crypto is a library for various cryptographic applications.
|
Kotlin Multiplatform Crypto is a library for various cryptographic applications.
|
||||||
|
|
||||||
This is an extremely early release, currently only consisting of Blake2b and SHA256 and 512.
|
API is very opinionated, meant to be used on both encrypting and decrypting side. The idea is that API leaves less room for
|
||||||
|
|
||||||
API is very opinionated, ment to be used on both encrypting and decrypting side. The idea is that API leaves less room for
|
|
||||||
errors when using it.
|
errors when using it.
|
||||||
|
|
||||||
|
The library comes in two flavors `multiplatform-crypto` and `multiplatform-crypto-delegated`
|
||||||
|
|
||||||
|
* `multiplatform-crypto` contains pure kotlin implementations, is not reviewed, should be considered unsafe and only
|
||||||
|
for prototyping or experimentation purposes.
|
||||||
|
|
||||||
|
* `multiplatform-crypto-delegated` relies on platform specific implementations, like libsodium, but care should still be taken that the kotlin code is not reviewed or proven safe.
|
||||||
|
|
||||||
|
|
||||||
## Notes & Roadmap
|
## Notes & Roadmap
|
||||||
|
|
||||||
**The API will move fast and break often until v1.0**
|
**The API will move fast and break often until v1.0**
|
||||||
|
|
||||||
Next step:
|
Next steps:
|
||||||
reduce ammount of allocations and introduce parallelization in Argon2
|
- Expand API (AEAD, ECC ...)
|
||||||
|
|
||||||
## Should I use this in production?
|
## Should I use this in production?
|
||||||
|
|
||||||
No.
|
No, until it is reviewed.
|
||||||
|
|
||||||
## Should I use this in code that is critical in any way, shape or form?
|
## Should I use this in code that is *critical* in any way, shape or form?
|
||||||
|
|
||||||
No.
|
No, but even if after being warned you decide to, then use `multiplatform-crypto-delegated`.
|
||||||
|
|
||||||
## Why?
|
## Why?
|
||||||
|
|
||||||
@ -49,11 +55,29 @@ It's not peer reviewed, not guaranteed to be bug free, and not guaranteed to be
|
|||||||
|
|
||||||
TODO()
|
TODO()
|
||||||
|
|
||||||
|
|
||||||
|
### Delegated flavor dependancy table
|
||||||
|
The following table describes which library is used for particular cryptographic primitive
|
||||||
|
|
||||||
|
| Primitive | JVM | JS | Native |
|
||||||
|
| ----------|-----|----|--------|
|
||||||
|
| Blake2b | JCE | libsodium.js | libsodium |
|
||||||
|
| SHA256 | JCE | libsodium.js | libsodium
|
||||||
|
| SHA512 | JCE | libsodium.js | libsodium
|
||||||
|
| AES-CBC | JCE | libsodium.js | libsodium
|
||||||
|
| AES-CTR | JCE | libsodium.js | libsodium
|
||||||
|
|
||||||
|
|
||||||
## Integration
|
## Integration
|
||||||
|
|
||||||
#### Gradle
|
#### Gradle
|
||||||
|
Kotlin
|
||||||
```kotlin
|
```kotlin
|
||||||
implementation("com.ionspin.kotlin:multiplatform-crypto:0.0.2")
|
implementation("com.ionspin.kotlin:multiplatform-crypto:0.0.5")
|
||||||
|
|
||||||
|
or
|
||||||
|
|
||||||
|
implementation("com.ionspin.kotlin:multiplatform-crypto-delegated:0.0.5")
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Snapshot builds
|
#### Snapshot builds
|
||||||
@ -63,7 +87,7 @@ repositories {
|
|||||||
url = uri("https://oss.sonatype.org/content/repositories/snapshots")
|
url = uri("https://oss.sonatype.org/content/repositories/snapshots")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
implementation("com.ionspin.kotlin:multiplatform-crypto:0.0.3-SNAPSHOT")
|
implementation("com.ionspin.kotlin:multiplatform-crypto:0.0.6-SNAPSHOT")
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -40,6 +40,7 @@ allprojects {
|
|||||||
google()
|
google()
|
||||||
maven ("https://kotlin.bintray.com/kotlinx")
|
maven ("https://kotlin.bintray.com/kotlinx")
|
||||||
maven ("https://dl.bintray.com/kotlin/kotlin-eap")
|
maven ("https://dl.bintray.com/kotlin/kotlin-eap")
|
||||||
|
maven ("https://kotlin.bintray.com/kotlin-dev")
|
||||||
jcenter()
|
jcenter()
|
||||||
maven {
|
maven {
|
||||||
url = uri("https://oss.sonatype.org/content/repositories/snapshots")
|
url = uri("https://oss.sonatype.org/content/repositories/snapshots")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user