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 +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/lib/trocla/formats/argon2.rb +2 -2
- data/lib/trocla/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e313de9c046b1d0c40fd9ce7f0524def8c4295e7027a977679eaedcde728e999
|
|
4
|
+
data.tar.gz: c62e654ccfbf7ae4bd9ece570b545cffea47a52352d62e17ca3efe4948a25b68
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 866cefa1be238bff5e260d364cf4e3cfc6a68315bf3a9c4d429194df66a659db69097dc41aa40445f8929e9488a0687824e45b81659e570270adb1ccbd26fe6e
|
|
7
|
+
data.tar.gz: aa1ae85ffd2dc0c4228d8aaf01d23493a99030f6d894cbf8ef35ba55d61e61ef6cf855b3c22861df3341f519dc00eb3c1e85baab81f40807cedea9a02e74d3d0
|
data/CHANGELOG.md
CHANGED
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 [
|
|
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 '
|
|
3
|
+
require 'argon2id'
|
|
4
4
|
def format(plain_password, options = {})
|
|
5
|
-
|
|
5
|
+
Argon2id::Password.create(plain_password,**(options['argon2'] || {})).to_s
|
|
6
6
|
end
|
|
7
7
|
end
|
data/lib/trocla/version.rb
CHANGED
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.
|
|
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:
|
|
97
|
+
name: argon2id
|
|
98
98
|
requirement: !ruby/object:Gem::Requirement
|
|
99
99
|
requirements:
|
|
100
100
|
- - "~>"
|
|
101
101
|
- !ruby/object:Gem::Version
|
|
102
|
-
version: '
|
|
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: '
|
|
109
|
+
version: '0.10'
|
|
110
110
|
- !ruby/object:Gem::Dependency
|
|
111
111
|
name: rake
|
|
112
112
|
requirement: !ruby/object:Gem::Requirement
|