dev-random-passwords 0.1.4 → 0.1.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6e8810ba253d09244991432b1fd01ea4a60ff1e7
4
- data.tar.gz: 0941d50a538e70d5c03b694be44360e29ba3cb62
3
+ metadata.gz: b0ca03557c36c14e92e5b2154946f78a3e7ddb26
4
+ data.tar.gz: d41a0cb3bc12ebdaa09af1fc8cd2942dda4255bd
5
5
  SHA512:
6
- metadata.gz: 1ccd06e3eb1947c0b3c7198f2a3be27e8bc40d60ddc921b1426ce92ad211f304e77f9328d0b263b90d653621dcd6c4b80783e548e829a5eba3132af4f32edfb5
7
- data.tar.gz: 29f02179bfcddc821ef88fc9f49651d66881cc9b1c945fbdd86401c3bf93d9f2905623a60ef6c18e0ddbb378788b34e51fd088324d42219a0264d3a331e2b181
6
+ metadata.gz: f5fd440325bfd0053f8459a8fa05a7884ccf5ad28c822457349ce3369d05aab2ab4ef21afdf6f40e3243740bd547a4ae16d3282aebd2aab6102dfaf0e7fab4ec
7
+ data.tar.gz: 5a9a60d1285a065c700e5de9dfd7b78e8befdc4a700ca7e3dc940a16bc9a3a01a1186b583338c928e9bf2455fd4aa5f9c48eb74ed26a462697a066a104fc0cb4
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2014, Joel Smith
1
+ Copyright (c) 2018, Joel Smith
2
2
  All rights reserved.
3
3
 
4
4
  Redistribution and use in source and binary forms, with or without
data/README.md CHANGED
@@ -26,9 +26,11 @@ Or install it yourself as:
26
26
  Simply install the gem and run "randompasswords"
27
27
  ```
28
28
  $ randompasswords
29
- dV>28l,T
29
+ ci+IUid(QVG1
30
30
  ```
31
31
 
32
+ dev-random-passwords by default creates a 12 character random password with uppercase and lowercase letters, numbers, and special characters. A password with these qualities would take centuries to brute force and ensure that you have very secure random passwords.
33
+
32
34
  Use -l to specify chracter length
33
35
  ```
34
36
  $ randompasswords -l 16
@@ -62,12 +64,12 @@ rpg = DevRandomPasswords::Generator.new
62
64
 
63
65
  Set some options for your password
64
66
  ```ruby
65
- rpg.set_options({'lowercase' => true, 'uppercase' => true, 'digits' => true, 'length' => 12, 'requirements' => {'digits' => true, 'uppercase' => true, 'lowercase' => true}})
67
+ rpg.set_options({'lowercase' => true, 'uppercase' => true, 'digits' => true, 'length' => 18, 'requirements' => {'digits' => true, 'uppercase' => true, 'lowercase' => true}})
66
68
  ```
67
69
 
68
70
  Generate a new password
69
71
  ```ruby
70
- rpg.generate #=> "J0jhBM9dAPwk"
72
+ rpg.generate #=> "wdHHzTex47NWFyseN8"
71
73
  ```
72
74
 
73
75
  Enjoy!
@@ -11,7 +11,7 @@ options = {
11
11
  'special' => true,
12
12
  'include' => nil,
13
13
  'exclude' => nil,
14
- 'length' => 8,
14
+ 'length' => 12,
15
15
  'requirements' => nil,
16
16
  'hardware' => false
17
17
  }
@@ -22,11 +22,11 @@ opts = OptionParser.new do |opts|
22
22
  opts.separator ""
23
23
  opts.separator "Specific options:"
24
24
 
25
- opts.on("-l", "--length [DIGITS]", "Password length in digits (default is 8)") do |length|
25
+ opts.on("-l", "--length [DIGITS]", "Password length in digits (default is 12)") do |length|
26
26
  options['length'] = length.to_i
27
27
  end
28
28
 
29
- opts.on("-c", "--characters a,b,c",
29
+ opts.on("-c", "--characters digits,uppercase,lowercase",
30
30
  Array, "List of character types to use comma separated") do |list|
31
31
  ['lowercase','uppercase','digits','special'].each do |chartype|
32
32
  if list.include? chartype
@@ -45,7 +45,7 @@ opts = OptionParser.new do |opts|
45
45
  options['exclude'] = exclude_chars
46
46
  end
47
47
 
48
- opts.on("-r", "--require x,y,z",
48
+ opts.on("-r", "--require special,lowercase,digits",
49
49
  Array, "List of character types to require in the generated password comma separated") do |req|
50
50
  req_hash = {}
51
51
  ['lowercase','uppercase','digits','special'].each do |chartype|
@@ -13,7 +13,7 @@ module DevRandomPasswords
13
13
 
14
14
  def initialize
15
15
  @charset = LOWERCASE_CHARS + UPPERCASE_CHARS + DIGITS + SPECIAL_CHARS
16
- @char_length = 8
16
+ @char_length = 12
17
17
  @requirements = nil
18
18
  @hardware_random = false
19
19
  end
@@ -25,7 +25,7 @@ module DevRandomPasswords
25
25
  'special' => true,
26
26
  'include' => nil,
27
27
  'exclude' => nil,
28
- 'length' => 8,
28
+ 'length' => 12,
29
29
  'requirements' => nil})
30
30
 
31
31
  new_set = ""
@@ -1,3 +1,3 @@
1
1
  module DevRandomPasswords
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dev-random-passwords
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel Smith
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-11 00:00:00.000000000 Z
11
+ date: 2018-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -76,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
76
  version: '0'
77
77
  requirements: []
78
78
  rubyforge_project:
79
- rubygems_version: 2.4.5
79
+ rubygems_version: 2.6.11
80
80
  signing_key:
81
81
  specification_version: 4
82
82
  summary: Passwords that need to be used long term and are randomly generated need