You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This binding needs the Argon2 C library. Libraries for the following operation systems are included in argon2-jvm library:
44
+
45
+
This binding needs a compiled Argon2 library. It is recommended to install argon2 via your package manager. If you can't do that, use `argon2-jvm` with the included argon2 binary libraries or compile argon2 yourself. The following operating systems and architectures are supported in `argon2-jvm`:
46
+
41
47
* Linux x86
42
48
* Linux x86-64
43
49
* Linux ARM
@@ -48,10 +54,6 @@ This binding needs the Argon2 C library. Libraries for the following operation s
48
54
49
55
See [tested distributions](compatibility-tests/README.md) for details on which distributions this has been tested.
50
56
51
-
If you'd prefer to install/compile argon2 on your own you can use argon2-jvm-nolibs instead of argon2-jvm.
52
-
53
-
If you need help to build argon2, have a look at [this documentation](docs/compile-argon2.md).
54
-
55
57
```java
56
58
importde.mkammerer.argon2.Argon2;
57
59
importde.mkammerer.argon2.Argon2Factory;
@@ -85,29 +87,41 @@ The recommended parameters for the `hash` call above can be found in the [whitep
85
87
You can use the method `Argon2Helper.findIterations` to find the optimal number of iterations on your system:
86
88
87
89
```java
88
-
Argon2 argon2=Argon2Factory.create();
90
+
Argon2 argon2=Argon2Factory.create();
89
91
// 1000 = The hash call must take at most 1000 ms
90
92
// 65536 = Memory cost
91
93
// 1 = parallelism
92
-
int iterations=Argon2Helper.findIterations(argon2,1000,65536,1);
94
+
int iterations=Argon2Helper.findIterations(argon2,1000,65536,1);
93
95
94
-
System.out.println("Optimal number of iterations: "+iterations);
96
+
System.out.println("Optimal number of iterations: "+iterations);
95
97
```
96
98
99
+
## Compile Argon2 yourself
100
+
101
+
If you prefer to install/compile argon2 on your own you should `argon2-jvm-nolibs` instead of `argon2-jvm` and compile argon2 yourself. It's not that hard :)
102
+
103
+
If you need help to build argon2, have a look at [this documentation](docs/compile-argon2.md).
104
+
97
105
## Technical details
106
+
98
107
This library uses [JNA](https://github.com/java-native-access/jna) to communicate with the Argon2 C library.
99
108
100
109
## Building it yourself
110
+
101
111
Run `./gradlew clean build` to build and test the software.
102
112
103
113
## License
114
+
104
115
Licensed under [LGPL v3](https://www.gnu.org/licenses/lgpl.html).
105
116
106
117
## Maintainer
118
+
107
119
Moritz Kammerer ([@phXql](https://github.com/phxql))
108
120
109
121
## Contributing
122
+
110
123
See [contributing guidelines](CONTRIBUTING.md).
111
124
112
125
## Contributors
126
+
113
127
See [contributors page](https://github.com/phxql/argon2-jvm/graphs/contributors).
0 commit comments