trocla 0.7.0 → 0.9.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: 1e516b5dbf1bdca34c4c47a440672337c3c7f8694593ff2b06ae2a2602a6b907
4
- data.tar.gz: ce60947349c3faf08f7d0cda00fa3ddeeae6c09a1b8f8947695134c74e72b101
3
+ metadata.gz: 50c067dec49ab0132e76e97f6a4485719b1e682f41a8284eded50419fc1da8b7
4
+ data.tar.gz: b3d352d5448214e35f666bf9c15039d8fa28c28027011e764af374a516a87c3a
5
5
  SHA512:
6
- metadata.gz: 900ce53ad161c3a8819353205c685ebae03d95f303df6af34e5cd4771ab1fc4711684aad9411bdd9aab85d8426873ea179a03f288b47e38c9351b1c49c757528
7
- data.tar.gz: eb344684031b86e4e56cd75c2530f9542d051fc1e395141c4c68070f03e4ba53784d6bdfcdbcf08d563af62e770526b1a7e2d9a1ac56c7daf6371ac6120a5397
6
+ metadata.gz: f35837e555141e05e6bd066de5ea3f599be6009338b8a065e38848c134a104e7109a761d938ee696e52b3c61aa387052670f9c703d99e91981f904d27e2c4ff1
7
+ data.tar.gz: df0b19ca2ef456f2683a9d425f0e159112f3930cf88abb56dd30a22f4ccbd00d6aeebd0e0e0c25c8f45cd53d51fe7e364f49f5d95484a81ee13c212355b9767b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## to 0.9.0
4
+
5
+ * Remove yescrypt - since supporting it on JRuby is a mess
6
+
7
+ ## to 0.8.0
8
+
9
+ * Add Argon2 format - Fixes [#84](https://github.com/duritong/trocla/issues/84)
10
+ * Add yescrypt format - Fixes [#81](https://github.com/duritong/trocla/issues/81) - not supported on Jruby
11
+
3
12
  ## to 0.7.0
4
13
 
5
14
  * bump support for various dependencies and ruby versions
data/README.md CHANGED
@@ -174,6 +174,10 @@ Password hashes for PostgreSQL servers. Since postgesql 10 you can use the sha25
174
174
  You are able to tune the [cost factor of bcrypt](https://github.com/codahale/bcrypt-ruby#cost-factors) by passing the option `cost`.
175
175
  Note: ruby bcrypt does not support a [cost > 31](https://github.com/codahale/bcrypt-ruby/blob/master/lib/bcrypt/password.rb#L45).
176
176
 
177
+ ### argon2
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.
180
+
177
181
  ### x509
178
182
 
179
183
  This format takes a set of additional options. Required are:
@@ -0,0 +1,7 @@
1
+ class Trocla::Formats::Argon2 < Trocla::Formats::Base
2
+ expensive true
3
+ require 'argon2'
4
+ def format(plain_password, options = {})
5
+ Argon2::Password.create(plain_password,options['argon2'] || {})
6
+ end
7
+ end
@@ -3,7 +3,7 @@
3
3
  class Trocla
4
4
  module VERSION
5
5
  MAJOR = 0
6
- MINOR = 7
6
+ MINOR = 9
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.7.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - mh
@@ -93,6 +93,20 @@ dependencies:
93
93
  - - "~>"
94
94
  - !ruby/object:Gem::Version
95
95
  version: '0.2'
96
+ - !ruby/object:Gem::Dependency
97
+ name: argon2
98
+ requirement: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - "~>"
101
+ - !ruby/object:Gem::Version
102
+ version: '2.3'
103
+ type: :runtime
104
+ prerelease: false
105
+ version_requirements: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - "~>"
108
+ - !ruby/object:Gem::Version
109
+ version: '2.3'
96
110
  - !ruby/object:Gem::Dependency
97
111
  name: rake
98
112
  requirement: !ruby/object:Gem::Requirement
@@ -168,6 +182,7 @@ files:
168
182
  - lib/trocla/encryptions/none.rb
169
183
  - lib/trocla/encryptions/ssl.rb
170
184
  - lib/trocla/formats.rb
185
+ - lib/trocla/formats/argon2.rb
171
186
  - lib/trocla/formats/bcrypt.rb
172
187
  - lib/trocla/formats/md5crypt.rb
173
188
  - lib/trocla/formats/mysql.rb
@@ -209,7 +224,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
209
224
  - !ruby/object:Gem::Version
210
225
  version: '0'
211
226
  requirements: []
212
- rubygems_version: 4.0.3
227
+ rubygems_version: 3.6.9
213
228
  specification_version: 4
214
229
  summary: Trocla a simple password generator and storage
215
230
  test_files: []