trunk 0.1.1 → 0.1.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 +27 -16
- data/lib/trunk/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b29f9e978fa30da384e7486f64ee0ae2247371437816634fe7974c2e3c74cc86
|
4
|
+
data.tar.gz: 376a4aebd4d069fa753bcfdc55e45cef1b9e2e0a4ae6a907b14d11ada5bf73fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b466f5a93bc6b5d915191517787edb3892cbe2f1cf43f2787b1b9936b7f1b545df3da599e993f54cdf7253fc69438961e5eea2fc64e98ea02c70b421b36a377e
|
7
|
+
data.tar.gz: 0a1ba17c11adf3e27a5fee54bdabd9c0625dc2cd850f8d8b6f04915fb3f2943fac4032492b0e7ba10e695dae3930fe3cb9837e9f5d71544cc750b2feb47e1cdf
|
data/README.md
CHANGED
@@ -1,38 +1,49 @@
|
|
1
1
|
# Trunk
|
2
2
|
|
3
|
-
|
3
|
+
A safe place to put things.
|
4
|
+
|
5
|
+
I wrote `trunk` as a replacement for [keepassx](https://www.keepassx.org/).
|
4
6
|
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
6
7
|
|
7
8
|
## Installation
|
8
9
|
|
9
|
-
Add this line to your application's Gemfile:
|
10
10
|
|
11
|
-
|
12
|
-
gem 'trunk'
|
13
|
-
```
|
11
|
+
Install it:
|
14
12
|
|
15
|
-
|
13
|
+
$ gem install trunk
|
16
14
|
|
17
|
-
|
15
|
+
## Usage
|
18
16
|
|
19
|
-
|
17
|
+
The setup command will generate a password protected private key file
|
18
|
+
located at `$HOME/.trunk/.trunk.key.enc`.
|
20
19
|
|
21
|
-
|
20
|
+
```bash
|
21
|
+
$ trunk setup
|
22
|
+
```
|
22
23
|
|
23
|
-
|
24
|
+
To add a secret to trunk:
|
25
|
+
|
26
|
+
```bash
|
27
|
+
$ trunk add soundcloud.com mypassword
|
28
|
+
```
|
29
|
+
|
30
|
+
Or you can can pipe a password in:
|
31
|
+
|
32
|
+
```bash
|
33
|
+
$ pwgen -s 32 1 | TRUNK_PASSPHRASE=secret trunk add soundcloud.com
|
34
|
+
```
|
24
35
|
|
36
|
+
To copy a password to your clipboard
|
25
37
|
```bash
|
26
|
-
$ trunk
|
27
|
-
$ trunk add key - # read password from stdin
|
28
|
-
$ trunk show title
|
38
|
+
$ TRUNK_PASSPHRASE=secret trunk show soundcloud.com | pbcopy
|
29
39
|
```
|
30
40
|
|
31
41
|
Storage Layout
|
32
42
|
|
33
43
|
```yaml
|
34
|
-
# ~/.trunk
|
35
|
-
|
44
|
+
# ~/.trunk/.trunk.enc
|
45
|
+
---
|
46
|
+
soundcloud.com: base64(<encrypted>)
|
36
47
|
```
|
37
48
|
|
38
49
|
## Development
|
data/lib/trunk/version.rb
CHANGED