whyoleg / cryptography-kotlin

Kotlin Multiplatform cryptography / crypto library
https://whyoleg.github.io/cryptography-kotlin/
Apache License 2.0
343 stars 20 forks source link

Integration with kotlinx.io #20

Closed whyoleg closed 1 month ago

whyoleg commented 9 months ago

Allow to perform operations (such as encryption) over Sources from kotlinx.io, including files. Additionally if needed some more low-level APIs could be implemented, so that kotlinx.io integration will just use it, f.e:

whyoleg commented 8 months ago

Preliminary API design: https://github.com/whyoleg/cryptography-kotlin/commit/04310269d99998b66d6b3d7857ed23ae3d5ee0f4 Note: some parts of API will be marked as experimental. In long term, when kotlinx-io will become stable, some of the existing declarations could be dropped. Most likely, existing operations with ByteArrays will be dropped in favour of operations with ByteStrings

whyoleg commented 1 month ago

0.4.0 was just released! Feel free to check API available, e.g for streaming encryption or hashing