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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 19adec4c32f7a7b0b3f373eb969cb1f94f11b2018c0560fb87fe08273b14589e
4
- data.tar.gz: 6df240ec47463524f39b8d771bce155f35ce32ccc135b6fdd9525c62c76afc08
3
+ metadata.gz: 4c2cc60eee467eec84b90432990ca77e95cb5f89e8c7d45e5e6cd152936a4475
4
+ data.tar.gz: 3d90b330a059f305d0204dd5def35c08e98d0b39c38fdd420fc232678fc521e5
5
5
  SHA512:
6
- metadata.gz: '095ce5720c3bd485cfc290025c83d9e906ce8fab073a850ad592e63216dcb6b211326904ea72e030324ebebbda87b86292350556c2f952d54d171ab086c86ebb'
7
- data.tar.gz: 7e7632fced693a9f7e162184d91e525b735d5650010bc9a00f5a97b730cdf1af9a5adfac566078b00d9cf27c438d4e7913f71d6c0edf54935622e7379f3ed1b1
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
- # Sgpg
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 key all the 6 month on each PC
6
- and each time, it's very very annoying so i build this tool to gain in time
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Sgpg
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.1'
5
5
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sgpg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - szorfein
metadata.gz.sig CHANGED
Binary file