phoenix_password 0.1.3 → 0.1.4
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/README.md +1 -1
- data/lib/phoenix_password/version.rb +1 -1
- data/lib/phoenix_password.rb +15 -11
- data/phoenix_password-0.1.3.gem +0 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a09e0b1f956a313ce3d4ff00e8f803309949ce63
|
4
|
+
data.tar.gz: c1adfa0184b895260991bd5f0a1b16f6d3f546f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3db615bd4071bb8872fbfd356f1d0f5491916e3bcff46400a581485067be49ce363ff44e7947ae11078b03eb008b131567f587b099c0c1eaacc35820ad8771b0
|
7
|
+
data.tar.gz: 5fa8b60263805368feee149a8a6e203fcd79470564e01b4bc0a7d67a51f13b5c9844ed4a5de0d8cb635a3b04a9695991ed9a219422af8509716567f5de5cdbac
|
data/README.md
CHANGED
@@ -21,7 +21,7 @@ Or install it yourself as:
|
|
21
21
|
$ gem install phoenix_password
|
22
22
|
|
23
23
|
## Usage
|
24
|
-
In order to generate combinations simply add the minimum
|
24
|
+
In order to generate combinations simply add the minimum of the required options
|
25
25
|
here is an irb example:
|
26
26
|
|
27
27
|
```ruby
|
data/lib/phoenix_password.rb
CHANGED
@@ -87,22 +87,24 @@ class PhoenixPassword
|
|
87
87
|
|
88
88
|
matching=0
|
89
89
|
begin
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
90
|
+
generate_combinations(data) do |combination;i|
|
91
|
+
if matching_check({:combination=>combination,:match_limit=>info[:match_limit]})
|
92
|
+
if info[:piped]
|
93
|
+
puts combination
|
94
|
+
elsif !matching_file.nil?
|
95
|
+
if data[:extra_chars].nil?
|
96
|
+
matching_file.puts(combination)
|
97
|
+
elsif data[:iteration] >= 1
|
98
|
+
matching_file.puts(combination)
|
99
|
+
end
|
99
100
|
end
|
101
|
+
matching +=1
|
100
102
|
end
|
101
|
-
matching +=1
|
102
103
|
end
|
103
|
-
end
|
104
104
|
data[:iteration]+=1 unless data[:iteration].nil?
|
105
105
|
char_sum +=1
|
106
|
+
rescue => e
|
107
|
+
raise
|
106
108
|
end while char_sum <= total_characters
|
107
109
|
matching_file.close unless matching_file.nil?
|
108
110
|
return matching
|
@@ -171,6 +173,8 @@ class PhoenixPassword
|
|
171
173
|
end
|
172
174
|
data[:iteration] +=1 if !data[:iteration].nil?
|
173
175
|
char_sum +=1
|
176
|
+
rescue => e
|
177
|
+
raise
|
174
178
|
end while char_sum <= total_characters
|
175
179
|
|
176
180
|
unless unique_file.nil?
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phoenix_password
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Spiros Avlonitis
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -74,6 +74,7 @@ files:
|
|
74
74
|
- lib/phoenix_password.rb
|
75
75
|
- lib/phoenix_password/version.rb
|
76
76
|
- phoenix_password-0.1.2.gem
|
77
|
+
- phoenix_password-0.1.3.gem
|
77
78
|
- phoenix_password.gemspec
|
78
79
|
homepage: https://github.com/spirosavlonitis/phoenix_password
|
79
80
|
licenses:
|