2

I recently found the library Libsodium and was glad that there are also Bindings for Java. Unfortunately, the libraries don't appear to work with Windows because they were developed for other systems.

How can I use the libraries under Windows (if possible)? Are there any alternative libraries for Java?

CodesInChaos
  • 106,488
  • 23
  • 218
  • 262
  • They claim in their readme that it works with Windows. – mikeazo Dec 29 '14 at 18:02
  • Agreed -- the [kalium installation instructions](https://github.com/abstractj/kalium#installation) are kind of terse, but they never say it *doesn't* work on Windows. If you've tried to install there libraries, but couldn't get them to work, it would help if you described the specific issue you got stuck on. (Also, this question might be better suited for [so] in any case, since it's only tangentially related to cryptography.) – Ilmari Karonen Dec 29 '14 at 20:20

1 Answers1

3

On that page for other bindings, you find the Java binding is called Kalium. You'll see it requires Apache Maven. So I went and got that (at the bottom it explains how to install maven, but basically you just add some environment variables).

Now on to kalium, I got it from their abstract on github. I needed mvn clean install from the directory in order to install it in Maven. After changing directory to the unzipped Kalium folder I ran the specified command (which is telling Maven to get the files and install Kalium). This will handle the rest of the set-up.

Then it's just a matter of adding it as a dependency in your Maven projects as per the Kalium readme. As for libsodium: it is a library that works with MinGW, and VisualStudio in Windows. So if you want to do C/C++ coding you can use that instead. But for the Java binding it seems you'll have deploy it using Maven.

Maarten Bodewes
  • 90,524
  • 13
  • 150
  • 263
Charles B.
  • 193
  • 1
  • 7