secret-keeper 2.0.1 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/secret-keeper.rb +2 -2
  3. metadata +5 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1a314a84c5cdc4c6ef06e417d3c638186eafdaeb522936e97c87a54f7050940a
4
- data.tar.gz: 2e40a932f8d0c92aa78fea56401f4c115862c302e0c584cc8cf5f95d06faf09a
3
+ metadata.gz: 3780cd6fd302478bb033a3b2f8b980701f4a47b9aabfa493d4927e1567bca877
4
+ data.tar.gz: 1423255bf5777ca952e1cae1731a76ff43e9d7d7201e5e6326f580edddcd5716
5
5
  SHA512:
6
- metadata.gz: 877c488a822ec78ca1ef89b2f58c1461de62a866bf5625954a8cb0772af3d1ba6fb789f05802c885eb6841857d4a6e5599af18e0abe129987f13777b86de9e22
7
- data.tar.gz: 3d580b41a2585c1c2977affbad1ef8ac443b20b59074ce715265b57fc2879da1a6f848702fff8dea3fbf7ca443e70a2cf21ac5d65bf71a3edf99db2267d7f8f5
6
+ metadata.gz: e66da035423b2fdace72ba34c478ba3f270996a77cf686069f1b666eac9f271edddf5d1b948a58978b4ee3ddd78887b34e69a1d5b008062e6fea3fa2d59756b6
7
+ data.tar.gz: 0be52bd84487ff5556128ff52e2f75057e458037bd131f4af7a044a0d6d3572a57bbfa981a5b19dfa230c2c8f1462e691327f41c15c026b3ea501cfe827580f5
data/lib/secret-keeper.rb CHANGED
@@ -114,13 +114,13 @@ class SecretKeeper
114
114
  private
115
115
 
116
116
  def encrypt(data)
117
- cipher = @using_cipher.encrypt
117
+ cipher = OpenSSL::Cipher.new(@using_cipher.name).encrypt
118
118
  cipher.key = @cipher_key
119
119
  cipher.update(data) + cipher.final
120
120
  end
121
121
 
122
122
  def decrypt(data)
123
- cipher = @using_cipher.decrypt
123
+ cipher = OpenSSL::Cipher.new(@using_cipher.name).decrypt
124
124
  cipher.key = @cipher_key
125
125
  cipher.update(data) + cipher.final
126
126
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: secret-keeper
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ray Lee
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-11 00:00:00.000000000 Z
11
+ date: 2023-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -40,7 +40,7 @@ licenses:
40
40
  metadata:
41
41
  source_code_uri: https://github.com/kdan-mobile-software-ltd/secret-keeper
42
42
  changelog_uri: https://github.com/kdan-mobile-software-ltd/secret-keeper/blob/master/CHANGELOG.md
43
- post_install_message:
43
+ post_install_message:
44
44
  rdoc_options:
45
45
  - "--charset=UTF-8"
46
46
  require_paths:
@@ -57,7 +57,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
57
57
  version: '0'
58
58
  requirements: []
59
59
  rubygems_version: 3.4.10
60
- signing_key:
60
+ signing_key:
61
61
  specification_version: 4
62
62
  summary: Keep all your secret files within openssl
63
63
  test_files: