phxql / argon2-jvm

Argon2 Binding for the JVM
GNU Lesser General Public License v3.0
330 stars 32 forks source link

Java compile issues(javafx) #92

Closed ThomasGustafson closed 2 years ago

ThomasGustafson commented 2 years ago

I am trying to use this module in a javafx project and I can not get it to import properly even after adding a pom.xml file with dependencies. These imports will have the de red:

argon2 import issues

maven dependancy

any help would be greatly appreciated

Thank you for your time

Thomas Gustafson

phxql commented 2 years ago

Hello!

Other dependencies are working fine? This is just an issue with argon2-jvm?

ThomasGustafson commented 2 years ago

yes The other libraries being used are javafx, SQLite version 3.8.9.1 but the SQLite is not actively being used yet used yet. argon 2 error .

phxql commented 2 years ago

Are you using Java Module System?

ThomasGustafson commented 2 years ago

yes here is what I am looking at modules

I got the argon2jvm from https://repo1.maven.org/maven2/de/mkammerer/argon2-jvm/2.11/

ThomasGustafson commented 2 years ago

The good news is I figured out how to get the library in . I downloaded version 2.11 nolibs jar but I have run into one other issue with the hash method it appears to be deprecated and I was wondering what should be used in it's place. It is also giving me a can not be referenced from static content error.

hash issue

Thank you for your time and any help

Thomas Gustafson

phxql commented 2 years ago

Please take a look at the readme here: https://github.com/phxql/argon2-jvm#usage

It shows the correct usage of argon2-jvm.

ThomasGustafson commented 2 years ago

This looks good aside from this method readPasswordFromUser(); it is red is there another document for what that method is supposed to do/ the code for it?

ThomasGustafson commented 2 years ago

version 2.11 nolibs is not working due to a java con.sun.jna.NativeLong Error Native Long Error ModulesbeingUsed

Any ideas?

Thank you for your time and any help

Thomas Gustafson

ThomasGustafson commented 2 years ago

I solved this problem I had to add the argon2 2.11 jvm jar and the jar for jna version 5.10.0.