sgpg 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +7 -2
- data/README.md +18 -7
- data/bin/sgpg +5 -4
- data/lib/sgpg/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c2cc60eee467eec84b90432990ca77e95cb5f89e8c7d45e5e6cd152936a4475
|
4
|
+
data.tar.gz: 3d90b330a059f305d0204dd5def35c08e98d0b39c38fdd420fc232678fc521e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a22030df9e6f5269efc9125a5af8faf9329ca33d2e82bc8dce843d9df38b07a8ed72384835e6c98afd9a1f756cee7b1e23d2e7061d75c9151dd0b32dd1c9ab89
|
7
|
+
data.tar.gz: 00ad00234f1eb91772770ef29c9e4bb06cda7d5375da477f7d381d8817f6d924862e2b68be5dfeb68836d8beebb5738057a8a72a7066675741134f7ab2a2e61b
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
## 0.1.0, release 09/10/24
|
2
|
+
- New .github/workflow to publish package on github.
|
3
|
+
- New command line options
|
4
|
+
- `--disk-encrypt` if need to use cryptsetup or not.
|
5
|
+
- `--export` create master and lesser archive.
|
6
|
+
|
1
7
|
## 0.0.1, release 07/27/24
|
2
|
-
* Initial push, code freeying
|
3
|
-
"
|
8
|
+
* Initial push, code freeying!
|
data/README.md
CHANGED
@@ -1,12 +1,18 @@
|
|
1
|
-
#
|
1
|
+
# sgpg
|
2
|
+
|
3
|
+
<div align="center">
|
4
|
+
<br/>
|
5
|
+
|
6
|
+
[![Gem Version](https://badge.fury.io/rb/sgpg.svg)](https://badge.fury.io/rb/sgpg)
|
7
|
+
|
8
|
+
</div>
|
9
|
+
|
2
10
|
Short gpg, tool for manage your gpg key (backup tarball, unprivileged keys, etc)
|
3
11
|
|
4
12
|
Followed my [post](https://szorfein.github.io/gpg/build-secure-gpg-key/) to
|
5
|
-
create a secure gpg key, i need to update my
|
6
|
-
and each time, it's very very annoying so i build this tool to gain
|
7
|
-
and sanity :).
|
8
|
-
|
9
|
-
So with this tool, 'i,you,we' should use no more than 3 commands max instead of 50...
|
13
|
+
create a secure gpg key, i need to update my keys all the 6 month on each PC
|
14
|
+
and each time, it's very very annoying so i build this tool to gain time
|
15
|
+
and mental sanity :).
|
10
16
|
|
11
17
|
You always need to create a gpg key as well
|
12
18
|
|
@@ -34,7 +40,7 @@ You can register the disk/by-id or disk/by-uuid if you prefer.
|
|
34
40
|
When subkeys expire:
|
35
41
|
|
36
42
|
sgpg --last-master --edit-key # update expired keys, change password, etc...
|
37
|
-
sgpg --export
|
43
|
+
sgpg --export # create master and lesser archive
|
38
44
|
sgpg --close # unmount and close disk
|
39
45
|
|
40
46
|
Import the last unpriviliged key (laptop and other)
|
@@ -42,6 +48,11 @@ Import the last unpriviliged key (laptop and other)
|
|
42
48
|
sgpg --last-lesser --edit-key # trust (555)
|
43
49
|
sgpg --close # unmount and close disk
|
44
50
|
|
51
|
+
Manually choose an archive
|
52
|
+
|
53
|
+
sgpg --open # mount disk
|
54
|
+
sgpg --path-key /mnt/sgpg/Persistent/archive.tar --edit-key
|
55
|
+
|
45
56
|
## Gem push
|
46
57
|
|
47
58
|
gem login
|
data/bin/sgpg
CHANGED
@@ -62,11 +62,12 @@ OptionParser.new do |opts|
|
|
62
62
|
Sgpg::Main.export_secret(options)
|
63
63
|
Sgpg::Main.lesser_keys(options)
|
64
64
|
end
|
65
|
+
|
66
|
+
opts.on('-v', '--version', 'Display the current version.') do
|
67
|
+
puts "sgpg v#{Sgpg::VERSION}"
|
68
|
+
exit
|
69
|
+
end
|
65
70
|
end.parse!
|
66
71
|
|
67
72
|
raise 'no disk to use' if !options[:disk] || options[:disk] == ''
|
68
73
|
raise 'no key to use' if !options[:keyname] || options[:keybase] == ''
|
69
|
-
|
70
|
-
puts config_file
|
71
|
-
|
72
|
-
puts "Sgpg v.#{Sgpg::VERSION}"
|
data/lib/sgpg/version.rb
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|