Skip to content

Commit 5e68258

Browse files
committed
Bump version to 0.4.0
1 parent 48afb87 commit 5e68258

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

CHANGELOG.md

+15
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,20 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.4.0] - 2024-11-02
9+
10+
### Added
11+
12+
- Added support for JRuby 9.4 by adding an implementation of Argon2id hashing
13+
and verification using JRuby-OpenSSL's Bouncy Castle internals.
14+
- Added `output` to `Argon2id::Password` instances so the actual "output" part
15+
of a password hash can be retrieved (and compared)
16+
17+
### Changed
18+
19+
- Verifying a password will now consistently raise an `ArgumentError` when
20+
given an invalid encoded hash rather than an `Argon2id::Error`
21+
822
## [0.3.0] - 2024-11-01
923

1024
### Added
@@ -63,6 +77,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6377
reference C implementation of Argon2, the password-hashing function that won
6478
the Password Hashing Competition.
6579

80+
[0.4.0]: https://github.com/mudge/argon2id/releases/tag/v0.4.0
6681
[0.3.0]: https://github.com/mudge/argon2id/releases/tag/v0.3.0
6782
[0.2.1]: https://github.com/mudge/argon2id/releases/tag/v0.2.1
6883
[0.2.0]: https://github.com/mudge/argon2id/releases/tag/v0.2.0

README.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function that won the 2015 [Password Hashing Competition][].
55

66
[![Build Status](https://github.com/mudge/argon2id/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/mudge/argon2id/actions)
77

8-
**Current version:** 0.3.0
8+
**Current version:** 0.4.0
99
**Bundled Argon2 version:** libargon2.1 (20190702)
1010

1111
```ruby
@@ -143,7 +143,7 @@ password.is_password?("opensesame") #=> true
143143
password.is_password?("notopensesame") #=> false
144144
```
145145

146-
The various parameters for the password can be retrieved:
146+
The various parts of the encoded password can be retrieved:
147147

148148
```ruby
149149
password = Argon2id::Password.new("$argon2id$v=19$m=256,t=2,p=1$c29tZXNhbHQ$nf65EOgLrQMR/uIPnA4rEsF5h7TKyQwu9U1bMCHGi/4")
@@ -153,6 +153,8 @@ password.m_cost #=> 256
153153
password.t_cost #=> 2
154154
password.parallelism #=> 1
155155
password.salt #=> "somesalt"
156+
password.output
157+
#=> "\x9D\xFE\xB9\x10\xE8\v\xAD\x03\x11\xFE\xE2\x0F\x9C\x0E+\x12\xC1y\x87\xB4\xCA\xC9\f.\xF5M[0!\xC6\x8B\xFE"
156158
```
157159

158160
### Errors
@@ -187,6 +189,7 @@ Where possible, a pre-compiled native gem will be provided for the following pla
187189
* [musl](https://musl.libc.org/)-based systems such as [Alpine](https://alpinelinux.org) are supported as long as a [glibc-compatible library is installed](https://wiki.alpinelinux.org/wiki/Running_glibc_programs)
188190
* macOS `x86_64-darwin` and `arm64-darwin`
189191
* Windows `x64-mingw32` and `x64-mingw-ucrt`
192+
* Java: any platform running JRuby 9.4 or higher
190193

191194
### Verifying the gems
192195

lib/argon2id/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module Argon2id
4-
VERSION = "0.3.0"
4+
VERSION = "0.4.0"
55
end

0 commit comments

Comments
 (0)