Coder Social home page Coder Social logo

kalium-jni's Introduction

kalium-jni - Java JNI binding to the Networking and Cryptography (NaCl) library

A Java JNI binding (to allow for Java and Android integration) to Networking and Cryptography library by Daniel J. Bernstein. All the hard work of making a portable NaCl API version was done by Frank Denis on libsodium and kalium was totally inspired by Tony Arcieri's work with RbNaCl and kalium.

Requirements

Installation

###Shared Library and Jar File

Please install docker and then run the copy script

This will then pull the docker container from docker-libsodium which is a Trusted Build.

Manual compilation and installation

Please refer to the installation instructions for more details or the docker build

Add kalium-jni to your Android project

Add the generated .jar file (~/.m2/repository/org/abstractj/kalium/kalium-jni/x.x.x-SNAPSHOT.jar) in your android project or add as a maven dependency:

Add as a Maven dependency at your project:

<dependency>
    <groupId>org.abstractj.kalium</groupId>
    <artifactId>kalium-jni</artifactId>
    <version>1.0.0-SNAPSHOT</version>
    <scope>compile</scope>
</dependency>

Add libkaliumjni.so that you'll find inside libs folder(kalium-jni/libs) in jniLibs (src/main/jniLibs) folder of your project.

Notes

kalium-jni is a work in progress, feedback, bug reports and patches are always welcome.

Docker build

Docker container

Issues / Improvements / Help Seeked

if anyone understands travis-ci and how to configure maven tests to find jni libraries, please submit a patch or email me travis-ci build

the blake tests have been commented out, there were some strange jni errors

Everything has been tested and working on ubuntu 12.04 32bit and 64 bit, macos, and Android

kalium-jni's People

Contributors

joshjdevl avatar qmx avatar vp-of-awesome avatar vipulnsward avatar folex avatar ph0b avatar

Watchers

Noah Seger avatar Guy Hoozdis avatar Stuart Prillaman avatar James Cloos avatar Cameron Hotchkies avatar Todd Smith avatar Natalie Jameson avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.