diffcrypt 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/lib/diffcrypt/rails/encrypted_configuration.rb +2 -2
- data/lib/diffcrypt/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e6d985bd619146b0cede42746b62e00f7e52a01a92a8e7a79718ab0f9b80391a
|
|
4
|
+
data.tar.gz: d0fb2659741c498608421b741b4fa1acfbdec8f74bc7ac65425a9c97017a9342
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2ba3e972200d1a4d785a9f4bdc67defc04e26d94d35421f9cc2b8a9e956b56f693e452acf0fbbb98ea7f96eb3fc6454e92dbb7d3fa825a6dc16f2882f86b12c6
|
|
7
|
+
data.tar.gz: d1e7c88b0a323ecb366e2a9642b45c8b60701c1492d97615773d7c12e5fe5753086b440d9bd1ccc19662ca3cb9f67de6c64e90000229ee64df73d619cc0f70f4
|
data/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
+
## [0.4.1] - 2020-10-06
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- Could not initialize a new file or modify existing rails format file (Thanks @swiknaba #31)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
10
18
|
## [0.4.0] - 2020-10-01
|
|
11
19
|
|
|
12
20
|
### Changed
|
data/README.md
CHANGED
|
@@ -85,7 +85,7 @@ end
|
|
|
85
85
|
|
|
86
86
|
## Converting between ciphers
|
|
87
87
|
|
|
88
|
-
Sometimes you may want to rotate the cipher used on a file. You
|
|
88
|
+
Sometimes you may want to rotate the cipher used on a file. You can do this programmatically using the ruby code above, or you can also chain the CLI commands like so:
|
|
89
89
|
|
|
90
90
|
```shell
|
|
91
91
|
diffcrypt decrypt -k $(cat test/fixtures/aes-128-gcm.key) test/fixtures/example.yml.enc > test/fixtures/example.128.yml \
|
|
@@ -99,7 +99,7 @@ module Diffcrypt
|
|
|
99
99
|
# @return [String]
|
|
100
100
|
def decrypt(contents)
|
|
101
101
|
if contents.index('---').nil?
|
|
102
|
-
|
|
102
|
+
active_support_encryptor.decrypt_and_verify contents
|
|
103
103
|
else
|
|
104
104
|
encryptor.decrypt contents
|
|
105
105
|
end
|
|
@@ -108,7 +108,7 @@ module Diffcrypt
|
|
|
108
108
|
# Rails applications with an existing credentials file, the inbuilt active support encryptor should be used
|
|
109
109
|
# @return [ActiveSupport::MessageEncryptor]
|
|
110
110
|
def active_support_encryptor
|
|
111
|
-
@active_support_encryptor
|
|
111
|
+
@active_support_encryptor ||= ActiveSupport::MessageEncryptor.new(
|
|
112
112
|
[key].pack('H*'),
|
|
113
113
|
cipher: @diffcrypt_file.cipher,
|
|
114
114
|
)
|
data/lib/diffcrypt/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: diffcrypt
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Marc Qualie
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-10-
|
|
11
|
+
date: 2020-10-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|