dynarex-password 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/dynarex-password.rb +12 -4
- data.tar.gz.sig +0 -0
- metadata +32 -32
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 804d78b3cff553e0897804d6fe8af4d1b47ef7c9f0ef09381d0c0c3e9273ee6c
|
4
|
+
data.tar.gz: 6844745fdd6d13b2bc2692369c13bd34cc3f0b70aee0c15371b4397a5fd4ee37
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ad5ecbeeb56fc8982a3634c07e7acf41c8fc4880a91b5f275b130d8061818a8b3e538ab9bb63877e0c4cd8beb062ddbda9fb83b99f09e3e098c727ed1a94c69
|
7
|
+
data.tar.gz: 2731177f5b4a6903d89adae87ececee8194834e7eef323022111e297c6f8ddca34296ad1f2719cfe04801828b59a65b7330a54e6968062e178a72ccb6a278dab
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/dynarex-password.rb
CHANGED
@@ -4,6 +4,9 @@
|
|
4
4
|
|
5
5
|
require 'dynarex'
|
6
6
|
|
7
|
+
class DynarexPasswordError < Exception
|
8
|
+
end
|
9
|
+
|
7
10
|
class DynarexPassword
|
8
11
|
using ColouredText
|
9
12
|
|
@@ -25,17 +28,22 @@ class DynarexPassword
|
|
25
28
|
@dx = Dynarex.new('codes[fixedsize]/code(index,value)')
|
26
29
|
@dx.fixedsize = @fixed_size = fixed_size
|
27
30
|
|
28
|
-
chars = (0..9).to_a + Array.new(7) + ('A'..'Z').to_a \
|
29
|
-
|
31
|
+
#chars = (0..9).to_a + Array.new(7) + ('A'..'Z').to_a \
|
32
|
+
# + Array.new(6) + ('a'..'z').to_a
|
30
33
|
@chars = (0..9).to_a + ('A'..'Z').to_a + ('a'..'z').to_a
|
31
34
|
|
32
|
-
chars.each do |char|
|
35
|
+
@chars.each do |char|
|
33
36
|
|
34
37
|
s = get_random_chars(2)
|
35
38
|
@temp_list << s
|
36
|
-
@dx.create
|
39
|
+
@dx.create({index: char, value: s}) if char
|
37
40
|
|
38
41
|
end
|
42
|
+
|
43
|
+
# ensure the values are unique
|
44
|
+
values = @dx.all.map(&:value)
|
45
|
+
raise DynarexPasswordError, 'Values are not uniqe!' if values != values.uniq
|
46
|
+
|
39
47
|
end
|
40
48
|
|
41
49
|
def lookup(weak_password, file=nil)
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dynarex-password
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -10,32 +10,33 @@ bindir: bin
|
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
13
|
+
MIIEljCCAv6gAwIBAgIBATANBgkqhkiG9w0BAQsFADBIMRIwEAYDVQQDDAlnZW1t
|
14
|
+
YXN0ZXIxHjAcBgoJkiaJk/IsZAEZFg5qYW1lc3JvYmVydHNvbjESMBAGCgmSJomT
|
15
|
+
8ixkARkWAmV1MB4XDTIzMDIxNDE5MzkzNVoXDTI0MDIxNDE5MzkzNVowSDESMBAG
|
16
|
+
A1UEAwwJZ2VtbWFz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B8cZZAtDLRwgly0XJpoHh1uM2M2gZVeK0dJvnUpMWtbbFE3s6XlOtUd
|
32
|
+
oTFsX/BinRKuarSqyTl4ws0/dt3h+qoYJ8Bb1xOyWq/kexkClktGO3DriQDiZuau
|
33
|
+
bp9ndo495b1UmN5FW2pqUtpgSeD02p/qdmt+P4Md5kWN++wbsFtkozmjPLbUv0V6
|
34
|
+
5tAc4hLqSpKyeWbuOhZcCi+kHehL2KRjIclw1G7OwTmK/Gb6T6AouSQHCnJVbVg3
|
35
|
+
uKWmjUqzs/EYKH+apf1pLBlwfnDfQbuhOnpJq0KBZXi+hwg9Untbm/LToA2Vf6vK
|
36
|
+
phq1ap3uj5EjiSk3sJoMTknfiQknD2KV2Ixz4D5c7PtY7ySQUMMxS9G2UkQDB+Go
|
37
|
+
00XXjNfWe6IXrHyM3pwjbnNhEoHAdascyM8=
|
37
38
|
-----END CERTIFICATE-----
|
38
|
-
date:
|
39
|
+
date: 2023-02-14 00:00:00.000000000 Z
|
39
40
|
dependencies:
|
40
41
|
- !ruby/object:Gem::Dependency
|
41
42
|
name: dynarex
|
@@ -43,20 +44,20 @@ dependencies:
|
|
43
44
|
requirements:
|
44
45
|
- - "~>"
|
45
46
|
- !ruby/object:Gem::Version
|
46
|
-
version: '1.
|
47
|
+
version: '1.10'
|
47
48
|
- - ">="
|
48
49
|
- !ruby/object:Gem::Version
|
49
|
-
version: 1.
|
50
|
+
version: 1.10.0
|
50
51
|
type: :runtime
|
51
52
|
prerelease: false
|
52
53
|
version_requirements: !ruby/object:Gem::Requirement
|
53
54
|
requirements:
|
54
55
|
- - "~>"
|
55
56
|
- !ruby/object:Gem::Version
|
56
|
-
version: '1.
|
57
|
+
version: '1.10'
|
57
58
|
- - ">="
|
58
59
|
- !ruby/object:Gem::Version
|
59
|
-
version: 1.
|
60
|
+
version: 1.10.0
|
60
61
|
description:
|
61
62
|
email: digital.robertson@gmail.com
|
62
63
|
executables: []
|
@@ -83,8 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
83
84
|
- !ruby/object:Gem::Version
|
84
85
|
version: '0'
|
85
86
|
requirements: []
|
86
|
-
|
87
|
-
rubygems_version: 2.7.10
|
87
|
+
rubygems_version: 3.4.4
|
88
88
|
signing_key:
|
89
89
|
specification_version: 4
|
90
90
|
summary: dynarex-password
|
metadata.gz.sig
CHANGED
Binary file
|