Skip to content

Commit

Permalink
Version 2.10
Browse files Browse the repository at this point in the history
  • Loading branch information
phxql committed Apr 6, 2021
1 parent 2f931d4 commit 32fe73c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file. This projec

## Unreleased

## [2.10] - 2021-04-06

### Added

- Added support for Apple's M1 ([PR](https://github.com/phxql/argon2-jvm/pull/82), [VirusTotal scan of the binary](https://www.virustotal.com/gui/file-analysis/ZDQ3ZTQ1ZTIxNTYzY2YyZmU5ZGJjYzQyNGY5ZWY4MzY6MTYxNDA2NzU3MA==/detection))
Expand Down
16 changes: 7 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,20 @@ This is a JVM binding for [Argon2](https://github.com/P-H-C/phc-winner-argon2).
Without pre-compiled Argon2 libraries (recommended, install argon2 via your package manager):

```xml

<dependency>
<groupId>de.mkammerer</groupId>
<artifactId>argon2-jvm-nolibs</artifactId>
<version>2.10-SNAPSHOT</version>
<version>2.10</version>
</dependency>
```

With pre-compiled Argon2 libraries:

```xml

<dependency>
<groupId>de.mkammerer</groupId>
<artifactId>argon2-jvm</artifactId>
<version>2.10-SNAPSHOT</version>
<version>2.10</version>
</dependency>
```

Expand All @@ -31,13 +29,13 @@ With pre-compiled Argon2 libraries:
Without pre-compiled Argon2 libraries (recommended, install argon2 via your package manager):

```groovy
implementation 'de.mkammerer:argon2-jvm-nolibs:2.10-SNAPSHOT'
implementation 'de.mkammerer:argon2-jvm-nolibs:2.10'
```

With pre-compiled Argon2 libraries:

```groovy
implementation 'de.mkammerer:argon2-jvm:2.10-SNAPSHOT'
implementation 'de.mkammerer:argon2-jvm:2.10'
```

## Usage
Expand Down Expand Up @@ -88,13 +86,13 @@ The recommended parameters for the `hash` call above can be found in the [whitep
You can use the method `Argon2Helper.findIterations` to find the optimal number of iterations on your system:

```java
Argon2 argon2=Argon2Factory.create();
Argon2 argon2 = Argon2Factory.create();
// 1000 = The hash call must take at most 1000 ms
// 65536 = Memory cost
// 1 = parallelism
int iterations=Argon2Helper.findIterations(argon2,1000,65536,1);
int iterations = Argon2Helper.findIterations(argon2, 1000, 65536, 1);

System.out.println("Optimal number of iterations: "+iterations);
System.out.println("Optimal number of iterations: " + iterations);
```

## Compile Argon2 yourself
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ subprojects {
apply plugin: 'signing'

group 'de.mkammerer'
version '2.10-SNAPSHOT'
version '2.10'
description 'Argon2 Binding for the JVM'

repositories {
Expand Down

0 comments on commit 32fe73c

Please sign in to comment.