symmetric-encryption 3.8.1 → 3.8.2
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/README.md +12 -6
- data/lib/symmetric_encryption/cipher.rb +1 -1
- data/lib/symmetric_encryption/railtie.rb +8 -2
- data/lib/symmetric_encryption/version.rb +1 -1
- data/test/test_db.sqlite3 +0 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2f99ee3679f67ccf977755f31245de76084376f2
|
|
4
|
+
data.tar.gz: 82e2ddb9b6e96b8674a306521111591233878b88
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d4568a1b15d970a687aa1457367a0921a0a680a10976cf4e6b2e8540beb2c41bd76b92c3ccc0ae132b0bf000430522fc2a5b6e5a0ca84faf0ca6a69c7530412c
|
|
7
|
+
data.tar.gz: d9ccc83d7ac47c75ce04e743b6b42e9bd76e25ebdd5a05c2b89cda9f09da19be8d36a5e246db6bde21d730557e3cb100940e277b815c82b54054bc21928cf4d3
|
data/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# symmetric-encryption
|
|
2
|
-
    
|
|
3
3
|
|
|
4
|
-
* http://github.com/
|
|
4
|
+
* http://github.com/rocketjob/symmetric-encryption
|
|
5
5
|
|
|
6
6
|
Transparently encrypt ActiveRecord, Mongoid, and MongoMapper attributes. Encrypt passwords in configuration files. Encrypt entire files at rest.
|
|
7
7
|
|
|
@@ -19,14 +19,20 @@ expose all the encryption algorithms supported by OpenSSL.
|
|
|
19
19
|
|
|
20
20
|
## Documentation
|
|
21
21
|
|
|
22
|
-
For complete documentation see: http://
|
|
22
|
+
For complete documentation see: http://rocketjob.github.io/symmetric-encryption/
|
|
23
23
|
|
|
24
|
-
##
|
|
24
|
+
## Documentation
|
|
25
|
+
|
|
26
|
+
[Symmetric Encryption Guide](http://rocketjob.github.io/symmetric-encryption)
|
|
27
|
+
|
|
28
|
+
[Reference Documentation](http://www.rubydoc.info/gems/symmetric-encryption/)
|
|
29
|
+
|
|
30
|
+
## Supports
|
|
25
31
|
|
|
26
32
|
Symmetric Encryption works with the following Ruby interpreters:
|
|
27
33
|
|
|
28
34
|
* Ruby 1.9.3, 2.0, 2.1, 2.2, or greater
|
|
29
|
-
* JRuby 1.7, 9.0
|
|
35
|
+
* JRuby 1.7, 9.0, or greater
|
|
30
36
|
* Rubinius 2.5, or greater
|
|
31
37
|
|
|
32
38
|
## Upgrading to SymmetricEncryption V3
|
|
@@ -96,7 +102,7 @@ may have backward compatibility issues:
|
|
|
96
102
|
|
|
97
103
|
[Reid Morrison](https://github.com/reidmorrison)
|
|
98
104
|
|
|
99
|
-
[Contributors](https://github.com/
|
|
105
|
+
[Contributors](https://github.com/rocketjob/symmetric-encryption/graphs/contributors)
|
|
100
106
|
|
|
101
107
|
## Versioning
|
|
102
108
|
|
|
@@ -556,7 +556,7 @@ module SymmetricEncryption
|
|
|
556
556
|
rsa.private_decrypt(encrypted_key)
|
|
557
557
|
rescue Errno::ENOENT
|
|
558
558
|
puts "\nSymmetric Encryption key file: '#{file_name}' not found or readable."
|
|
559
|
-
puts "To generate the keys for the first time run: rails generate symmetric_encryption:new_keys\n\n"
|
|
559
|
+
puts "To generate the keys for the first time run: bin/rails generate symmetric_encryption:new_keys production\n\n"
|
|
560
560
|
end
|
|
561
561
|
end
|
|
562
562
|
|
|
@@ -37,10 +37,16 @@ module SymmetricEncryption #:nodoc:
|
|
|
37
37
|
unless ::SymmetricEncryption.cipher?
|
|
38
38
|
config_file = Rails.root.join('config', 'symmetric-encryption.yml')
|
|
39
39
|
if config_file.file?
|
|
40
|
-
|
|
40
|
+
begin
|
|
41
|
+
::SymmetricEncryption::Config.load!(config_file, Rails.env)
|
|
42
|
+
rescue ArgumentError => exc
|
|
43
|
+
puts "\nSymmetric Encryption not able to read keys."
|
|
44
|
+
puts "#{exc.class.name} #{exc.message}"
|
|
45
|
+
puts "To generate key files: bin/rails generate symmetric_encryption:new_keys #{Rails.env}\n\n"
|
|
46
|
+
end
|
|
41
47
|
else
|
|
42
48
|
puts "\nSymmetric Encryption config not found."
|
|
43
|
-
puts "To generate one for the first time: rails generate symmetric_encryption:config\n\n"
|
|
49
|
+
puts "To generate one for the first time: bin/rails generate symmetric_encryption:config\n\n"
|
|
44
50
|
end
|
|
45
51
|
end
|
|
46
52
|
end
|
data/test/test_db.sqlite3
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: symmetric-encryption
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.8.
|
|
4
|
+
version: 3.8.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Reid Morrison
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-10-
|
|
11
|
+
date: 2015-10-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: coercible
|
|
@@ -77,7 +77,7 @@ files:
|
|
|
77
77
|
- test/test_db.sqlite3
|
|
78
78
|
- test/test_helper.rb
|
|
79
79
|
- test/writer_test.rb
|
|
80
|
-
homepage: http://
|
|
80
|
+
homepage: http://rocketjob.github.io/symmetric-encryption/
|
|
81
81
|
licenses:
|
|
82
82
|
- Apache License V2.0
|
|
83
83
|
metadata: {}
|