Skip to content

Commit 88da9ee

Browse files
committed
Merge branch 'develop'
2 parents 31b2760 + c377a04 commit 88da9ee

64 files changed

Lines changed: 1249 additions & 200 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
# This workflow will build a Java project with Gradle
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
3+
4+
name: Build & test
5+
6+
on:
7+
push:
8+
branches: [ master, develop ]
9+
pull_request:
10+
branches: [ master, develop ]
11+
12+
13+
jobs:
14+
buildon-linux:
15+
strategy:
16+
matrix:
17+
os: [ ubuntu-latest ]
18+
# New gradle doesn't run on <= 8
19+
# Java >= 12 doesn't support source/target level 6 anymore
20+
java: [ 8, 9, 10, 11 ]
21+
architecture: [ x86, x64 ]
22+
runs-on: ${{ matrix.os }}
23+
steps:
24+
- uses: actions/checkout@v2
25+
- name: Set up JDK ${{ matrix.java }}
26+
uses: actions/setup-java@v1
27+
with:
28+
java-version: ${{ matrix.java }}
29+
architecture: ${{ matrix.architecture }}
30+
- name: Cache Gradle packages
31+
uses: actions/cache@v2
32+
with:
33+
path: ~/.gradle/caches
34+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
35+
restore-keys: ${{ runner.os }}-gradle
36+
- name: Grant execute permission for gradlew
37+
run: chmod +x gradlew
38+
- name: Build with Gradle
39+
run: ./gradlew clean build
40+
build-on-macos:
41+
strategy:
42+
matrix:
43+
os: [ macos-latest ]
44+
# New gradle doesn't run on <= 8
45+
# Java >= 12 doesn't support source/target level 6 anymore
46+
java: [ 8, 9, 10, 11 ]
47+
# MacOS has no support for x86 ("Error: No valid download found for version 11.x and package jdk.")
48+
architecture: [ x64 ]
49+
runs-on: ${{ matrix.os }}
50+
steps:
51+
- uses: actions/checkout@v2
52+
- name: Set up JDK ${{ matrix.java }}
53+
uses: actions/setup-java@v1
54+
with:
55+
java-version: ${{ matrix.java }}
56+
architecture: ${{ matrix.architecture }}
57+
- name: Cache Gradle packages
58+
uses: actions/cache@v2
59+
with:
60+
path: ~/.gradle/caches
61+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
62+
restore-keys: ${{ runner.os }}-gradle
63+
- name: Grant execute permission for gradlew
64+
run: chmod +x gradlew
65+
- name: Build with Gradle
66+
run: ./gradlew clean build
67+
build-on-windows:
68+
strategy:
69+
matrix:
70+
os: [ windows-latest ]
71+
# New gradle doesn't run on <= 8
72+
# Java >= 12 doesn't support source/target level 6 anymore
73+
java: [ 8, 9, 10, 11 ]
74+
architecture: [ x86, x64 ]
75+
runs-on: ${{ matrix.os }}
76+
steps:
77+
- uses: actions/checkout@v2
78+
- name: Set up JDK ${{ matrix.java }}
79+
uses: actions/setup-java@v1
80+
with:
81+
java-version: ${{ matrix.java }}
82+
architecture: ${{ matrix.architecture }}
83+
- name: Cache Gradle packages
84+
uses: actions/cache@v2
85+
with:
86+
path: ~/.gradle/caches
87+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
88+
restore-keys: ${{ runner.os }}-gradle
89+
- name: Grant execute permission for gradlew
90+
run: chmod +x gradlew
91+
- name: Build with Gradle
92+
run: ./gradlew clean build
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
name: "CodeQL"
7+
8+
on:
9+
push:
10+
branches: [ master, develop ]
11+
pull_request:
12+
# The branches below must be a subset of the branches above
13+
branches: [ master, develop ]
14+
schedule:
15+
- cron: '0 1 * * 4'
16+
17+
jobs:
18+
analyze:
19+
name: Analyze
20+
runs-on: ubuntu-latest
21+
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
# Override automatic language detection by changing the below list
26+
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
27+
language: [ 'java' ]
28+
# Learn more...
29+
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
30+
31+
steps:
32+
- name: Checkout repository
33+
uses: actions/checkout@v2
34+
with:
35+
# We must fetch at least the immediate parents so that if this is
36+
# a pull request then we can checkout the head.
37+
fetch-depth: 2
38+
39+
# If this run was triggered by a pull request event, then checkout
40+
# the head of the pull request instead of the merge commit.
41+
- run: git checkout HEAD^2
42+
if: ${{ github.event_name == 'pull_request' }}
43+
44+
# Initializes the CodeQL tools for scanning.
45+
- name: Initialize CodeQL
46+
uses: github/codeql-action/init@v1
47+
with:
48+
languages: ${{ matrix.language }}
49+
# If you wish to specify custom queries, you can do so here or in a config file.
50+
# By default, queries listed here will override any specified in a config file.
51+
# Prefix the list here with "+" to use these queries and those in the config file.
52+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
53+
54+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
55+
# If this step fails, then you should remove it and run the build manually (see below)
56+
- name: Autobuild
57+
uses: github/codeql-action/autobuild@v1
58+
59+
# ℹ️ Command-line programs to run using the OS shell.
60+
# 📚 https://git.io/JvXDl
61+
62+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
63+
# and modify them (or add more) to build your code if your project
64+
# uses a compiled language
65+
66+
#- run: |
67+
# make bootstrap
68+
# make release
69+
70+
- name: Perform CodeQL Analysis
71+
uses: github/codeql-action/analyze@v1

.github/workflows/gradle.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
.idea/
33
*.iml
44
classes/
5+
out/
56

67
# Gradle
78
build/

CHANGELOG.md

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,31 @@
11
# Change Log
2-
All notable changes to this project will be documented in this file.
3-
This project adheres to [Semantic Versioning](http://semver.org/).
2+
3+
All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/).
4+
5+
## Unreleased
6+
7+
No changes yet.
8+
9+
## [2.8] - 2020-12-12
10+
11+
### Added
12+
13+
- Added method `hashAdvanced` to `Argon2Advanced` which lets the caller specify the argon2 version
14+
- Added methods `generateSalt` to `Argon2Advanced` which generates salt with either the default or the given length
15+
- Added OSGi entries to the JAR manifest
16+
17+
### Changed
18+
19+
- Improved the [compatibility list](compatibility-tests/README.md)
20+
- Updated JNA to 5.6.0
421

522
## [2.7] - 2020-04-15
623

724
### Added
825
- Added method `needsRehash` to check if a hash needs to be upgraded
926
- Updated JNA to 5.5.0
27+
28+
### Changed
1029
- Recompiled Argon2 for Linux x86 / x64 / ARM / ARM 64 on Ubuntu 16.04
1130

1231
## [2.6] - 2019-10-06

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ With pre-compiled Argon2 libraries:
99
<dependency>
1010
<groupId>de.mkammerer</groupId>
1111
<artifactId>argon2-jvm</artifactId>
12-
<version>2.7</version>
12+
<version>2.8</version>
1313
</dependency>
1414
```
1515

@@ -19,21 +19,21 @@ Without pre-compiled Argon2 libraries:
1919
<dependency>
2020
<groupId>de.mkammerer</groupId>
2121
<artifactId>argon2-jvm-nolibs</artifactId>
22-
<version>2.7</version>
22+
<version>2.8</version>
2323
</dependency>
2424
```
2525

2626
## Gradle
2727
With pre-compiled Argon2 libraries:
2828

2929
```groovy
30-
compile 'de.mkammerer:argon2-jvm:2.7'
30+
implementation 'de.mkammerer:argon2-jvm:2.8'
3131
```
3232

3333
Without pre-compiled Argon2 libraries:
3434

3535
```groovy
36-
compile 'de.mkammerer:argon2-jvm-nolibs:2.7'
36+
implementation 'de.mkammerer:argon2-jvm-nolibs:2.8'
3737
```
3838

3939
## Usage
@@ -46,13 +46,16 @@ This binding needs the Argon2 C library. Libraries for the following operation s
4646
* Windows x86-64
4747
* Darwin (OSX)
4848

49-
See [tested distributions](docs/tested-distributions.md) for details on which distributions this has been tested.
49+
See [tested distributions](compatibility-tests/README.md) for details on which distributions this has been tested.
5050

5151
If you'd prefer to install/compile argon2 on your own you can use argon2-jvm-nolibs instead of argon2-jvm.
5252

5353
If you need help to build argon2, have a look at [this documentation](docs/compile-argon2.md).
5454

5555
```java
56+
import de.mkammerer.argon2.Argon2;
57+
import de.mkammerer.argon2.Argon2Factory;
58+
5659
// Create instance
5760
Argon2 argon2 = Argon2Factory.create();
5861

0 commit comments

Comments
 (0)