Using libsodium in an android studio project

5.1k Views Asked by At

I am trying to utilize the libsodium library in an android studio project. However, I am having trouble figuring out how to do this. I have the library downloaded from the libsodium website, but do not understand how to create the library files necessary for an android studio project. Any help would be greatly appreciated. I imagine that kalium (https://github.com/abstractj/kalium) would help me do this, but am slightly confused on how to incorporate that as well.

2

There are 2 best solutions below

0
On

I know it's quite late, but if you want a starting point, this answer could help you: Answer.

Also, now there are many helpers to use libsodium in Android, like this github project: Robosodium.

0
On

libsodium themselves recommends lazysodium-android