password_generator_trigram 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c51464b77e11f5e489b7401789a725e072c73a7a
4
+ data.tar.gz: e917a0240b48498991d3c532770b99c8318c5456
5
+ SHA512:
6
+ metadata.gz: 9fd4f63b4fd4f57ec7c33c40cb1495c45997c043e1a55b3b66cc3b63284a9bcb8ea96963e039d0216ccb2e7114c43951ca6a7287e38f3dfca93f6a5fea0db0c0
7
+ data.tar.gz: eb62c5a366c8a2a1b6539358dea3194e1b6295687340143be0aa5b5947e4c8f7fcfd270a06fd07db0c2e053c32feba1ee2ec73bae934e6596de453d075a7db9c
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in password_generator_trigram.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2015 Makvik
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,33 @@
1
+ # PasswordGeneratorTrigram
2
+
3
+ GPW - Generate pronounceable passwords
4
+ This program uses statistics on the frequency of three-letter sequences
5
+ in English to generate passwords. The statistics are
6
+ generated from your dictionary by the program load_trigram.
7
+
8
+ See www.multicians.org/thvv/gpw.html for history and info.
9
+ Tom Van Vleck
10
+
11
+ ## Installation
12
+
13
+ Add this line to your application's Gemfile:
14
+
15
+ ```ruby
16
+ gem 'password_generator_trigram'
17
+ ```
18
+
19
+ And then execute:
20
+
21
+ $ bundle
22
+
23
+ Or install it yourself as:
24
+
25
+ $ gem install password_generator_trigram
26
+
27
+ ## Usage
28
+
29
+ puts PasswordGenerator.new.create_new(length)
30
+
31
+ or
32
+
33
+ ruby ./bin/pgt 10 #length
data/README.md~ ADDED
@@ -0,0 +1,35 @@
1
+ # PasswordGeneratorTrigram
2
+
3
+ GPW - Generate pronounceable passwords
4
+ This program uses statistics on the frequency of three-letter sequences
5
+ in English to generate passwords. The statistics are
6
+ generated from your dictionary by the program load_trigram.
7
+
8
+ See www.multicians.org/thvv/gpw.html for history and info.
9
+ Tom Van Vleck
10
+
11
+ ## Installation
12
+
13
+ Add this line to your application's Gemfile:
14
+
15
+ ```ruby
16
+ gem 'password_generator_trigram'
17
+ ```
18
+
19
+ And then execute:
20
+
21
+ $ bundle
22
+
23
+ Or install it yourself as:
24
+
25
+ $ gem install password_generator_trigram
26
+
27
+ ## Usage
28
+
29
+ puts PasswordGenerator.new.create_new(length)
30
+
31
+ or
32
+
33
+ pgt
34
+
35
+ ## Contributing
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+
data/bin/pgt ADDED
@@ -0,0 +1,15 @@
1
+ require 'password_generator_trigram'
2
+
3
+ pg = PasswordGenerator.new
4
+
5
+ if ARGV.length == 0
6
+ puts pg.create_new(6)
7
+ elsif ARGV.length > 1
8
+ puts "Many arguments"
9
+ elsif !pg.is_number? ARGV.first
10
+ puts "Invalid arguments"
11
+ elsif ARGV.first.to_i < 6
12
+ puts "Too simple password, minimum length of 6 characters"
13
+ else
14
+ puts pg.create_new(ARGV.first.to_i)
15
+ end
data/example.rb ADDED
@@ -0,0 +1,26 @@
1
+ require 'password_generator_trigram'
2
+
3
+ pg = PasswordGenerator.new
4
+
5
+ if ARGV.length == 0
6
+ puts pg.create_new(6)
7
+ elsif ARGV.length > 1
8
+ puts "Many arguments"
9
+ elsif !pg.is_number? ARGV.first
10
+ puts "Invalid arguments"
11
+ elsif ARGV.first.to_i < 6
12
+ puts "Too simple password, minimum length of 6 characters"
13
+ else
14
+ puts pg.new.create_new(ARGV.first.to_i)
15
+ end
16
+
17
+ # pg = PasswordGenerator.new
18
+
19
+ # loop do
20
+ # puts "------------------------------------"
21
+ # puts "---------Password Generator---------"
22
+ # puts "--------Enter length Password-------"
23
+ # length = gets.to_i
24
+ # puts "------------------------------------"
25
+ # puts pg.create_new(length)
26
+ # end