How to use Libsodium in Java for cryptography

When you opt for an upgrade from RSA

How do these binding libraries work

libsodium-jna binding chart
libsodium-jna, crypto_secretbox_easy
Native C libsodium, crypto_secretbox_easy
Java binding libsodium-jni
Java binding libsodium-jni native method declaration

How to use these library


You can encapsulate these functions into its own class

A good way to demonstrate how to use these functions is to write a unit test for them.

Result from unit crypto test

Android developer, problem solver, real man in training

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store