argon2 2.1.0 → 2.1.1
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/lib/argon2/version.rb +1 -1
- data/lib/argon2.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 933cdf134b0ac4110cda1cd9a8108a75c0dc6d80e6d2cb68446d93b1898f298a
|
|
4
|
+
data.tar.gz: bcb1c0d25d2a074c59ad5002e2078d0aa344480022f9a658eb297dcbd16b1eb6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d17d3f5c0a9162dca09db8ab7a9926becc50ace4527d2ad705db80d44ffdc528d3110853885ee5c042b5142c5cd619fd8c93d6a7dec75fc70d41fbb40661f259
|
|
7
|
+
data.tar.gz: 91fb841e70a470bf760871690c216ae4f305442a063b4c5a5c861fe97510c226db5f8db92cc65e8a93ea459fd42ac735bd216e2dfb333fc334f1e3f21cba3bbf
|
data/lib/argon2/version.rb
CHANGED
data/lib/argon2.rb
CHANGED
|
@@ -20,7 +20,7 @@ module Argon2
|
|
|
20
20
|
@p_cost = options[:p_cost] || 1
|
|
21
21
|
raise ArgonHashFail, "Invalid p_cost" if @p_cost < 1 || @p_cost > 8
|
|
22
22
|
|
|
23
|
-
@
|
|
23
|
+
@salt_do_not_supply = options[:salt_do_not_supply]
|
|
24
24
|
@secret = options[:secret]
|
|
25
25
|
end
|
|
26
26
|
|
|
@@ -29,7 +29,7 @@ module Argon2
|
|
|
29
29
|
pass.is_a?(String)
|
|
30
30
|
|
|
31
31
|
# Ensure salt is freshly generated unless it was intentionally supplied.
|
|
32
|
-
salt = @
|
|
32
|
+
salt = @salt_do_not_supply || Engine.saltgen
|
|
33
33
|
|
|
34
34
|
Argon2::Engine.hash_argon2id_encode(
|
|
35
35
|
pass, salt, @t_cost, @m_cost, @p_cost, @secret)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: argon2
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.
|
|
4
|
+
version: 2.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Technion
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-10-
|
|
11
|
+
date: 2021-10-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: ffi
|