trocla 0.9.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 50c067dec49ab0132e76e97f6a4485719b1e682f41a8284eded50419fc1da8b7
4
- data.tar.gz: b3d352d5448214e35f666bf9c15039d8fa28c28027011e764af374a516a87c3a
3
+ metadata.gz: e313de9c046b1d0c40fd9ce7f0524def8c4295e7027a977679eaedcde728e999
4
+ data.tar.gz: c62e654ccfbf7ae4bd9ece570b545cffea47a52352d62e17ca3efe4948a25b68
5
5
  SHA512:
6
- metadata.gz: f35837e555141e05e6bd066de5ea3f599be6009338b8a065e38848c134a104e7109a761d938ee696e52b3c61aa387052670f9c703d99e91981f904d27e2c4ff1
7
- data.tar.gz: df0b19ca2ef456f2683a9d425f0e159112f3930cf88abb56dd30a22f4ccbd00d6aeebd0e0e0c25c8f45cd53d51fe7e364f49f5d95484a81ee13c212355b9767b
6
+ metadata.gz: 866cefa1be238bff5e260d364cf4e3cfc6a68315bf3a9c4d429194df66a659db69097dc41aa40445f8929e9488a0687824e45b81659e570270adb1ccbd26fe6e
7
+ data.tar.gz: aa1ae85ffd2dc0c4228d8aaf01d23493a99030f6d894cbf8ef35ba55d61e61ef6cf855b3c22861df3341f519dc00eb3c1e85baab81f40807cedea9a02e74d3d0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## to 0.10.0
4
+
5
+ * Switch to use Argon2id gem instead of argon2, since the former has better JRuby support
6
+
3
7
  ## to 0.9.0
4
8
 
5
9
  * Remove yescrypt - since supporting it on JRuby is a mess
data/README.md CHANGED
@@ -176,7 +176,7 @@ Note: ruby bcrypt does not support a [cost > 31](https://github.com/codahale/bcr
176
176
 
177
177
  ### argon2
178
178
 
179
- You are able to tune argon2 options by passing the option `argon2` with what the [Argon2](https://github.com/technion/ruby-argon2?tab=readme-ov-file#usage) rubygem supports.
179
+ You are able to tune argon2 options by passing the option `argon2` with what the [Argon2id](https://github.com/mudge/argon2id?tab=readme-ov-file#hashing-passwords) rubygem supports.
180
180
 
181
181
  ### x509
182
182
 
@@ -1,7 +1,7 @@
1
1
  class Trocla::Formats::Argon2 < Trocla::Formats::Base
2
2
  expensive true
3
- require 'argon2'
3
+ require 'argon2id'
4
4
  def format(plain_password, options = {})
5
- Argon2::Password.create(plain_password,options['argon2'] || {})
5
+ Argon2id::Password.create(plain_password,**(options['argon2'] || {})).to_s
6
6
  end
7
7
  end
@@ -3,7 +3,7 @@
3
3
  class Trocla
4
4
  module VERSION
5
5
  MAJOR = 0
6
- MINOR = 9
6
+ MINOR = 10
7
7
  PATCH = 0
8
8
  BUILD = nil
9
9
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trocla
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - mh
@@ -94,19 +94,19 @@ dependencies:
94
94
  - !ruby/object:Gem::Version
95
95
  version: '0.2'
96
96
  - !ruby/object:Gem::Dependency
97
- name: argon2
97
+ name: argon2id
98
98
  requirement: !ruby/object:Gem::Requirement
99
99
  requirements:
100
100
  - - "~>"
101
101
  - !ruby/object:Gem::Version
102
- version: '2.3'
102
+ version: '0.10'
103
103
  type: :runtime
104
104
  prerelease: false
105
105
  version_requirements: !ruby/object:Gem::Requirement
106
106
  requirements:
107
107
  - - "~>"
108
108
  - !ruby/object:Gem::Version
109
- version: '2.3'
109
+ version: '0.10'
110
110
  - !ruby/object:Gem::Dependency
111
111
  name: rake
112
112
  requirement: !ruby/object:Gem::Requirement