my kmm app is getting data from a rest api i want ...
# multiplatform
p
my kmm app is getting data from a rest api i want to add compression-decompression and encryption-decryption on both ends what algorithms are readily available in kotlin for these ?
c
Not sure what you are aiming for with you question but I’d say that highly depends on the networking library use use. i.e Ktor has the usual SSL/TLS Contexts for encryption and also gzip/deflate and so on for compression.
p
@Chrimaeon the backend is pure python and frontend is kmp module
ktor is only used on fronted to make rest api calls
h
Ktor is a networking client library that can act as a server too, so he sent you the correct links for the client Kotlin doesn't have any algorithms out of the box that you can just use like that, as Christian said, you need a networking library and for KMP, Ktor is usually the go-to
p
ok thanks can you also help me with this sharediosArm64Main: Could not resolve io.ktorktor server compression2.3.12. Required by: project :shared
h
You need 'io.ktor:ktor-client-encoding' to add gzip and deflate https://ktor.io/docs/client-content-encoding.html
p
can this library help me with both encoding-decoding compression-decompression
c
Please read the docs I sent. You need 2 different “libraries”. And get sure to use the “client” version. Katie has also a server component with its own plugins.