password_genie 0.0.3 → 0.0.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/lib/password_genie.rb +22 -3
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ffac553f7f831402019caa9247f7c41d42c8fe94
|
4
|
+
data.tar.gz: 31f5881099c8ef55d1304216407ed476673f365a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2dd3e0802621da04431927662d97fd835161228d54a605e42a1102fedaf5a33c1625cada326bcf90510c6a9c336034d6048ef47a2e6aac918fabf5b694863647
|
7
|
+
data.tar.gz: e31dd89b143e58e72b1dc2a98a7ac387ba85cc317b4f158d1bdf229b891b2423db18a49e89cb7069e0b3d1dd455a417fd636c56fe2c91a96d4402e0a37bf583a
|
data/lib/password_genie.rb
CHANGED
@@ -5,7 +5,7 @@ class WordBank
|
|
5
5
|
attr_reader :word_bank, :number, :special_chars
|
6
6
|
|
7
7
|
def word_bank=(words)
|
8
|
-
word_bank=words.split("").to_a
|
8
|
+
word_bank= words.split("").to_a
|
9
9
|
word_bank.delete(" ")
|
10
10
|
unless word_bank.is_a?(Array)
|
11
11
|
raise "word bank must contain letters"
|
@@ -79,17 +79,24 @@ class WordBank
|
|
79
79
|
end
|
80
80
|
return "no match"
|
81
81
|
end
|
82
|
+
|
83
|
+
def push_info(site,username,password)
|
84
|
+
my_file = File.open('site_info.txt', 'a+') do |f|
|
85
|
+
f.puts("[#{site}] username: #{username} | password: #{password}")
|
86
|
+
end
|
87
|
+
end
|
82
88
|
end
|
83
89
|
|
84
90
|
go = true
|
85
91
|
|
86
92
|
while go
|
87
|
-
puts "enter [1] to CREATE a new password\nenter [2] to LOOKUP a password
|
93
|
+
puts "enter [1] to CREATE a new password\nenter [2] to LOOKUP a password"
|
94
|
+
puts "enter [3] to ADD an already existing password\nenter [4] to EXIT"
|
88
95
|
|
89
96
|
choice = gets.chomp.to_i
|
90
97
|
|
91
98
|
if choice == 1
|
92
|
-
puts "
|
99
|
+
puts "you will now design a custom password!"
|
93
100
|
puts "How long do you want your password to be?"
|
94
101
|
|
95
102
|
number = gets.chomp.to_i
|
@@ -136,6 +143,18 @@ while go
|
|
136
143
|
x = WordBank.new(word)
|
137
144
|
puts x.find_info(word)
|
138
145
|
next
|
146
|
+
elsif choice == 3
|
147
|
+
print "enter site: "
|
148
|
+
site = gets.chomp
|
149
|
+
print "enter username: "
|
150
|
+
username = gets.chomp
|
151
|
+
print "enter password: "
|
152
|
+
password = gets.chomp
|
153
|
+
x = WordBank.new(site)
|
154
|
+
x.push_info(site,username,password)
|
155
|
+
next
|
156
|
+
elsif choice == 4
|
157
|
+
go = false
|
139
158
|
else
|
140
159
|
next
|
141
160
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: password_genie
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- fookh
|
@@ -11,7 +11,8 @@ cert_chain: []
|
|
11
11
|
date: 2018-12-01 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: a simple tool to build a password based on user defined parameters 2.
|
14
|
-
archive passwords, usernames, and corresponding site data 3. search data
|
14
|
+
archive passwords, usernames, and corresponding site data 3. search data and 4.
|
15
|
+
push an existing password into txt file
|
15
16
|
email: foo@yetispeak.com
|
16
17
|
executables: []
|
17
18
|
extensions: []
|
@@ -41,5 +42,5 @@ rubyforge_project:
|
|
41
42
|
rubygems_version: 2.5.2.1
|
42
43
|
signing_key:
|
43
44
|
specification_version: 4
|
44
|
-
summary: introduces a
|
45
|
+
summary: introduces a puts function for CURRENT passwords
|
45
46
|
test_files: []
|