sgpass 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +16 -16
- data/bin/sgpass +2 -2
- data/lib/sgpass/version.rb +1 -1
- metadata +5 -5
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# SuperGenPass for Ruby
|
2
2
|
|
3
|
-
##
|
3
|
+
## Command line usage
|
4
4
|
|
5
5
|
Install it:
|
6
6
|
|
@@ -9,20 +9,16 @@ Install it:
|
|
9
9
|
To generate a password for a site, use:
|
10
10
|
|
11
11
|
$ sgpass facebook.com
|
12
|
-
|
12
|
+
Password: ******
|
13
13
|
h8GCua3DxC
|
14
14
|
|
15
|
-
|
16
|
-
|
17
|
-
$ sgpass http://www.facebook.com/profile.php
|
18
|
-
Enter password: [redacted]
|
19
|
-
h8GCua3DxC
|
15
|
+
To copy it to clipboard:
|
20
16
|
|
21
|
-
|
22
|
-
|
17
|
+
$ sgpass facebook.com -c
|
18
|
+
Password: ******
|
19
|
+
Done. Your password has been copied to the clipboard.
|
23
20
|
|
24
|
-
|
25
|
-
h8GCua3DxC
|
21
|
+
## Ruby usage
|
26
22
|
|
27
23
|
Or from your Ruby app, you may:
|
28
24
|
|
@@ -31,15 +27,19 @@ require 'sgpass'
|
|
31
27
|
str = SGPass.generate('hunter2', 'http://www.facebook.com') #=> "vXzettvkI2"
|
32
28
|
```
|
33
29
|
|
34
|
-
##
|
30
|
+
## More usage notes
|
35
31
|
|
36
|
-
|
32
|
+
You may even pass full URL's and `sgpass` will figure it out:
|
37
33
|
|
38
|
-
$ sgpass facebook.com
|
34
|
+
$ sgpass http://www.facebook.com/profile.php
|
35
|
+
Password: ******
|
36
|
+
h8GCua3DxC
|
39
37
|
|
40
|
-
|
38
|
+
If you don't want to to be asked for your password, pass it straight from the
|
39
|
+
command line:
|
41
40
|
|
42
|
-
$ sgpass facebook.com
|
41
|
+
$ sgpass facebook.com MyPassword
|
42
|
+
h8GCua3DxC
|
43
43
|
|
44
44
|
## Acknowledgements
|
45
45
|
|
data/bin/sgpass
CHANGED
@@ -13,8 +13,8 @@ def print_usage(options={})
|
|
13
13
|
$stderr.write "If no password is given, you will be prompted for one.\n"
|
14
14
|
$stderr.write "\n"
|
15
15
|
$stderr.write "Options:\n"
|
16
|
-
$stderr.write " -c, --copy Copies the result to the clipboard
|
17
|
-
$stderr.write " -f, --fast Prompts password just once instead of twice
|
16
|
+
$stderr.write " -c, --copy Copies the result to the clipboard.\n"
|
17
|
+
$stderr.write " -f, --fast Prompts password just once instead of twice.\n"
|
18
18
|
$stderr.write "\n"
|
19
19
|
$stderr.write "Examples:\n"
|
20
20
|
$stderr.write " #{cmd} twitter.com\n"
|
data/lib/sgpass/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sgpass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -14,7 +14,7 @@ default_executable:
|
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: highline
|
17
|
-
requirement: &
|
17
|
+
requirement: &2153259440 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ~>
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: 1.6.2
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *2153259440
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: clipboard
|
28
|
-
requirement: &
|
28
|
+
requirement: &2153258940 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ~>
|
@@ -33,7 +33,7 @@ dependencies:
|
|
33
33
|
version: 0.9.9
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *2153258940
|
37
37
|
description: SGPass uses a hash algorithm to transform a master password into unique,
|
38
38
|
complex passwords for the Web sites you visit. This is a Ruby port of www.supergenpass.com.
|
39
39
|
email:
|