authentic 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +59 -11
- data/lib/authentic/version.rb +1 -1
- data/lib/authentic.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a0405bf6ab9d3d2032221c0bd437cc0613e2887
|
4
|
+
data.tar.gz: 10fb91b9d22b3ed865dc78cf873c8ca17f30828f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1f2c01f5e7445e1463e422bbea71f10d53ea7b8e5093b68c554609732462fec027baa0310ed07343edab89fe413ac4e7c02004fef16af5bcec68542a252f47c
|
7
|
+
data.tar.gz: 1ddb1a3ebc93f0f8093c64a6c7cd17754fa68b1b9fb5c1a5a71654e43094f6f01f94cf91f3c42ae941b36192de6f6e9dc38a3c8679f17729e032312749210238
|
data/README.md
CHANGED
@@ -1,30 +1,78 @@
|
|
1
1
|
# Authentic
|
2
2
|
|
3
|
-
|
3
|
+
I was increasingly annoyed with having to unlock my phone, launch Google Authenticator and type
|
4
|
+
in the code to the web page every time I was prompted with a Two Factor Authentication screen.
|
5
|
+
I wanted a CLI tool to do the same thing on my Mac. For a long time, I've used
|
6
|
+
[oathtool](http://www.nongnu.org/oath-toolkit/) combined with a shell script that I'd keep adding
|
7
|
+
my TFA keys to. That obviously was very insecure and I was wondering if I could use Keychain
|
8
|
+
since it can be used to store various secure credentials.
|
9
|
+
|
10
|
+
So long story short, one evening in Nov 2014, I sat down to code a Ruby based tool to offload key storage
|
11
|
+
to Keychain and `authentic` was born.
|
4
12
|
|
5
13
|
## Installation
|
6
14
|
|
7
|
-
|
15
|
+
Install the tool by running:
|
8
16
|
|
9
|
-
```
|
10
|
-
gem
|
17
|
+
```shell
|
18
|
+
$ gem install authentic
|
11
19
|
```
|
12
20
|
|
13
|
-
|
21
|
+
(you might need to put a `sudo` in front of that command if your Ruby installation requires it)
|
14
22
|
|
15
|
-
|
23
|
+
## Usage
|
16
24
|
|
17
|
-
|
25
|
+
Once installed, the command should be available on the `PATH` so you can type:
|
18
26
|
|
19
|
-
|
27
|
+
```shell
|
28
|
+
$ authentic help
|
29
|
+
```
|
20
30
|
|
21
|
-
|
31
|
+
which should print out something like this:
|
32
|
+
|
33
|
+
```shell
|
34
|
+
$ authentic help
|
35
|
+
Authentic commands:
|
36
|
+
authentic add NAME SECRET_KEY [LABEL] # Add a new TOTP key
|
37
|
+
authentic delete NAME # Delete a TOTP key
|
38
|
+
authentic generate # Generate TOTP codes
|
39
|
+
authentic help [COMMAND] # Describe available commands or one specific command
|
40
|
+
```
|
41
|
+
|
42
|
+
In order to start using the tool, you first need to find your TFA key for the service that you are trying
|
43
|
+
to add. This could be tricky for some services, but this code is actually what is encoded by the QR code
|
44
|
+
displayed in most services. So click around (or view source) to try to find your TFA key, remember it will
|
45
|
+
only be displayed the first time you setup TFA for the service.
|
46
|
+
|
47
|
+
Once you have your TFA key in hand, adding it to `authentic` is as simple as:
|
48
|
+
|
49
|
+
```shell
|
50
|
+
$ authentic add MyService hedere
|
51
|
+
✓ Service MyService added to keychain
|
52
|
+
```
|
53
|
+
|
54
|
+
Now you can simply type:
|
55
|
+
|
56
|
+
```shell
|
57
|
+
$ authentic
|
58
|
+
```
|
59
|
+
|
60
|
+
to generate your codes. If you have a single service registered, the generated code will be automatically
|
61
|
+
copied to the clipboard (if you don't want that run the command with the `-s` flag, as in `authentic -s`).
|
62
|
+
If you have more than one service registered, the tool will prompt you to select a key number to copy. At
|
63
|
+
this point you can enter the key number you want to copy or just press `Enter` to exit the tool without copying
|
64
|
+
anything.
|
65
|
+
|
66
|
+
## Disclaimer
|
67
|
+
|
68
|
+
I am not a security expert and haven't had any security experts vet this tool. Use it at your own risk, I won't
|
69
|
+
take any responsibility for anything that happens to you as a result of using this tool.
|
22
70
|
|
23
|
-
|
71
|
+
If you feel (or even better *know*) that I am doing something wrong, please create an Issue or submit a Pull Request.
|
24
72
|
|
25
73
|
## Contributing
|
26
74
|
|
27
|
-
1. Fork it ( https://github.com/
|
75
|
+
1. Fork it ( https://github.com/paracycle/authentic/fork )
|
28
76
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
29
77
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
30
78
|
4. Push to the branch (`git push origin my-new-feature`)
|
data/lib/authentic/version.rb
CHANGED
data/lib/authentic.rb
CHANGED
@@ -27,7 +27,7 @@ module Authentic
|
|
27
27
|
end
|
28
28
|
|
29
29
|
unless item.nil?
|
30
|
-
say "\u2713".colorize(:green) + " Service #{name.colorize(:green)}
|
30
|
+
say "\u2713".colorize(:green) + " Service #{name.colorize(:green)} added to keychain"
|
31
31
|
else
|
32
32
|
say "\u2717".colorize(:red) + " Couldn't add service #{name.colorize(:red)}..."
|
33
33
|
say "Error: #{message}" unless message.nil?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: authentic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ufuk Kayserilioglu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|
@@ -152,3 +152,4 @@ signing_key:
|
|
152
152
|
specification_version: 4
|
153
153
|
summary: A desktop Google Authenticator replacement.
|
154
154
|
test_files: []
|
155
|
+
has_rdoc:
|