You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lazysodium is a complete Android implementation of the Libsodium library that provides developers with a smooth and effortless cryptography experience.
Note: Min SDK of 24 required
About
We created Lazysodium because we really wanted a solid Libsodium compatible Java/Android library that would just work without fuss. We were exasperated and annoyed with current Libsodium implementations as some of them were just poorly maintained and poorly architected.
This is by no means a comprehensive introduction to Lazysodium. Please view the official documentation for a more comprehensive guide.
Whatever build tool you're using the general gist is to add the mavenCentral() repository and then add the Lazysodium dependency.
More detailed instructions here.
The following example is for users of the build tool Gradle:
// Top level build file
repositories {
// Add this to the end of any existing repositories
mavenCentral()
}
// Project level dependencies section
dependencies {
implementation "com.goterl:lazysodium-android:VERSION_NUMBER@aar"
implementation "net.java.dev.jna:jna:5.17.0@aar"
}
Substitute VERSION_NUMBER for the version in this box: