multi_password 0.1.1 → 0.1.2
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 +4 -0
- data/lib/multi_password/strategies/scrypt.rb +4 -4
- data/lib/multi_password/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0657a313bae7cf70f5001effcd4863e6f1d3c52c8499cb4e0b3c7ff6e8acc3c
|
4
|
+
data.tar.gz: '0185bbd90799d11585c3ce56679de77cf02b7ff6ced4d71725d25ac1654ca0f4'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9911136f9a540f7a19d870c91b76f2217a96c42d4a671575649e32a855112db5f2589a1ce6f211091620f29041fab6abe6fea10da2f920d97aa849ea099ac8df
|
7
|
+
data.tar.gz: 81a4e61b8263bc8b475bda8306b40b2917a66708d5ffd22d80be6ba50ee453a7e6a9687c1696501657054646e9558bdacbd3c2a9f851d1d67fe67fe2899ccdd5
|
data/CHANGELOG
CHANGED
@@ -27,12 +27,12 @@ class MultiPassword
|
|
27
27
|
raise InvalidOptions.new('scrypt', 'key_len must be an integer between 16 and 512')
|
28
28
|
end
|
29
29
|
|
30
|
-
if max_time && (!max_time.is_a?(
|
31
|
-
raise InvalidOptions.new('scrypt', 'max_time must be
|
30
|
+
if max_time && (!max_time.is_a?(Numeric) || max_time < 0 || max_time > 2)
|
31
|
+
raise InvalidOptions.new('scrypt', 'max_time must be a number between 0 and 2')
|
32
32
|
end
|
33
33
|
|
34
|
-
if max_mem && (!max_mem.is_a?(
|
35
|
-
raise InvalidOptions.new('scrypt', 'max_mem must be
|
34
|
+
if max_mem && (!max_mem.is_a?(Integer) || max_mem < 0 || max_mem > 256)
|
35
|
+
raise InvalidOptions.new('scrypt', 'max_mem must be an integer between 0 and 256')
|
36
36
|
end
|
37
37
|
|
38
38
|
options
|