dgen 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dgen/base.rb +3 -2
- data/lib/dgen/outputfile.rb +4 -6
- data/lib/dgen/passgen.rb +4 -6
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b4e97d160a790de39dfc8ffe12e5e43dd71f9e0
|
4
|
+
data.tar.gz: 52d7dfb9b70f0db972e19da29d593e202a75721d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1632f406a509240eaa56c32c41ebf835fde80b366df78945a24f49b9d965741031886a097616ee3a49ae022c286394e7d1af0436b08da406e4d1592c24081f55
|
7
|
+
data.tar.gz: 70ad86ca87eb92701fb4787cf54043d08cdd74eb701e1839cebcbc768b02a3f6e4cc149fff6b0edcc4c72908081d7345810b397ddb20cee62c185dacf9790425
|
data/lib/dgen/base.rb
CHANGED
@@ -48,6 +48,9 @@ if options[:open]
|
|
48
48
|
puts 'An error occurred while trying to open the file.'
|
49
49
|
exit
|
50
50
|
end
|
51
|
+
elsif options.empty?
|
52
|
+
puts 'You did not enter a valid option. Try --help.'
|
53
|
+
exit
|
51
54
|
end
|
52
55
|
|
53
56
|
print 'Number of words for phrase (recommended minimum is 6 words) => '
|
@@ -77,6 +80,4 @@ elsif options[:batch]
|
|
77
80
|
puts 'Unable to save passphrases to output file.'
|
78
81
|
exit
|
79
82
|
end
|
80
|
-
else
|
81
|
-
puts 'You did not enter a valid option. Try --help.'
|
82
83
|
end
|
data/lib/dgen/outputfile.rb
CHANGED
@@ -1,16 +1,14 @@
|
|
1
1
|
##
|
2
2
|
# OutputFile Module
|
3
3
|
#
|
4
|
-
# This module provides the methods that enable saving generated passwords
|
5
|
-
# securely to a file.
|
6
|
-
#
|
7
|
-
# The encryption algorithm used is Blowfish, developed by Bruce Schneier.
|
8
|
-
#
|
9
4
|
# Copyright 2015 Richard Davis GPL v3
|
10
5
|
require 'crypt/blowfish'
|
11
6
|
|
12
7
|
##
|
13
|
-
#
|
8
|
+
# This module provides the methods that enable saving generated passwords
|
9
|
+
# securely to a file.
|
10
|
+
#
|
11
|
+
# The encryption algorithm used is Blowfish, developed by Bruce Schneier.
|
14
12
|
#
|
15
13
|
module OutputFile
|
16
14
|
##
|
data/lib/dgen/passgen.rb
CHANGED
@@ -1,16 +1,14 @@
|
|
1
1
|
##
|
2
2
|
# PassGen Module
|
3
3
|
#
|
4
|
-
# This module provides the methods that compose the password generator.
|
5
|
-
#
|
6
|
-
# The algorithm used to generate passwords is the Diceware method, developed
|
7
|
-
# by Arnold Reinhold.
|
8
|
-
#
|
9
4
|
# Copyright 2015 Richard Davis GPL v3
|
10
5
|
require 'securerandom'
|
11
6
|
|
12
7
|
##
|
13
|
-
#
|
8
|
+
# This module provides the methods that compose the password generator.
|
9
|
+
#
|
10
|
+
# The algorithm used to generate passwords is the Diceware method, developed
|
11
|
+
# by Arnold Reinhold.
|
14
12
|
#
|
15
13
|
module PassGen
|
16
14
|
##
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dgen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Richard Davis
|
@@ -14,20 +14,20 @@ dependencies:
|
|
14
14
|
name: crypt
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '2.2'
|
20
|
-
- -
|
20
|
+
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.2.1
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
|
-
- - ~>
|
27
|
+
- - "~>"
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: '2.2'
|
30
|
-
- -
|
30
|
+
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.2.1
|
33
33
|
description: |2
|
@@ -57,12 +57,12 @@ require_paths:
|
|
57
57
|
- lib
|
58
58
|
required_ruby_version: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
|
-
- -
|
60
|
+
- - ">="
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: '0'
|
63
63
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
|
-
- -
|
65
|
+
- - ">="
|
66
66
|
- !ruby/object:Gem::Version
|
67
67
|
version: '0'
|
68
68
|
requirements: []
|