mercredi 13 juillet 2016

Using argon2 in an android app gives an UnsatisfiedLinkError

I want to use Argon2 in this Android app I am trying to make. The README section of that repository listed this as an official JVM binding and I proceeded to include it in my app. I did this by including the given code in my gradle file[1]. I wrote some sample code to utilize this library[2] but on running the code, it throws a Java.lang.UnsatisfiedLinkError and exits. Can someone throw some light on how to fix this for me?

[1]:

repositories {
    maven {
        url  "https://dl.bintray.com/phxql/maven"
    }
}

dependencies {
    compile 'de.mkammerer:argon2-jvm:1.2'
}

[2]:

Argon2 argon2 = Argon2Factory.create();
String hash = argon2.hash(10, 65536, 2, "Hello World");

Aucun commentaire:

Enregistrer un commentaire