Skip to content

Commit

Permalink
Bump version to 0.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mudge committed Nov 2, 2024
1 parent f101668 commit bb230a1
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
12 changes: 11 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,21 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.4.1] - 2024-11-02

### Changed

- Refactor verification on JRuby to avoid parsing encoded hashes unnecessarily
- No longer describe the gem in terms of bindings to the reference C
implementation given the Bouncy Castle-based JRuby implementation
- Only wrap `IllegalStateException` with `Argon2id::Error` on JRuby

## [0.4.0] - 2024-11-02

### Added

- Added support for JRuby 9.4 by adding an implementation of Argon2id hashing
and verification using JRuby-OpenSSL's Bouncy Castle internals.
and verification using JRuby-OpenSSL's Bouncy Castle internals
- Added `output` to `Argon2id::Password` instances so the actual "output" part
of a password hash can be retrieved (and compared)

Expand Down Expand Up @@ -77,6 +86,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
reference C implementation of Argon2, the password-hashing function that won
the Password Hashing Competition.

[0.4.1]: https://github.com/mudge/argon2id/releases/tag/v0.4.1
[0.4.0]: https://github.com/mudge/argon2id/releases/tag/v0.4.0
[0.3.0]: https://github.com/mudge/argon2id/releases/tag/v0.3.0
[0.2.1]: https://github.com/mudge/argon2id/releases/tag/v0.2.1
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Ruby bindings to [Argon2][], the password-hashing function that won the 2015

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

**Current version:** 0.4.0
**Current version:** 0.4.1
**Bundled Argon2 version:** libargon2.1 (20190702)

```ruby
Expand Down Expand Up @@ -127,7 +127,7 @@ password == "opensesame" #=> true
password == "notopensesame" #=> false
```

Or, if you only have the hash (e.g. retrieved from storage):
Or, if you only have the encoded hash (e.g. retrieved from storage):

```ruby
password = Argon2id::Password.new("$argon2id$v=19$m=19456,t=2,p=1$ZS2nBFWBpnt28HjtzNOW4w$SQ+p+dIcWbpzWpZQ/ZZFj8IQkyhYZf127U4QdkRmKFU")
Expand All @@ -143,7 +143,7 @@ password.is_password?("opensesame") #=> true
password.is_password?("notopensesame") #=> false
```

The various parts of the encoded password can be retrieved:
The various parts of the encoded hash can be retrieved:

```ruby
password = Argon2id::Password.new("$argon2id$v=19$m=256,t=2,p=1$c29tZXNhbHQ$nf65EOgLrQMR/uIPnA4rEsF5h7TKyQwu9U1bMCHGi/4")
Expand Down
2 changes: 1 addition & 1 deletion lib/argon2id/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Argon2id
VERSION = "0.4.0"
VERSION = "0.4.1"
end

0 comments on commit bb230a1

Please sign in to comment.