secure_data_bag 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/secure_data_bag/decryptor.rb +2 -2
- data/lib/secure_data_bag/encryptor.rb +2 -2
- data/lib/secure_data_bag/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 68c90555111b2f6ef773c3aff88d05b9d7335e1c
|
4
|
+
data.tar.gz: 3a041cf31f796a35a4fce93391cee4afbc70110e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db18be8c4b9d5418647cd699c7efcbeeb43a0f76f2e35e012b0a92f6910d5a12a5cb79ad3fa7364672a02a86a458343759a50ec7c17f24aeca0f375e8737e037
|
7
|
+
data.tar.gz: 9b818ec9bb0d19956578a3705e461979b0b8c4ff19d97ffb6675cfa6c9f882df3765a5a2ee37bd00c8ca2c1d2a91399c4b71b167cb99ee2b8a7d56bcd7b3110e
|
@@ -1,6 +1,6 @@
|
|
1
1
|
|
2
2
|
require 'yaml'
|
3
|
-
require '
|
3
|
+
require 'yajl'
|
4
4
|
require 'openssl'
|
5
5
|
require 'base64'
|
6
6
|
require 'digest/sha2'
|
@@ -62,7 +62,7 @@ module SecureDataBag
|
|
62
62
|
value << openssl_decryptor.final
|
63
63
|
|
64
64
|
if value.include? "json_wrapper"
|
65
|
-
value =
|
65
|
+
value = Yajl::Parser.parse(value)["json_wrapper"]
|
66
66
|
end
|
67
67
|
@openssl_decryptor = nil
|
68
68
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
|
2
2
|
require 'yaml'
|
3
|
-
require '
|
3
|
+
require 'yajl'
|
4
4
|
require 'openssl'
|
5
5
|
require 'base64'
|
6
6
|
require 'digest/sha2'
|
@@ -70,7 +70,7 @@ module SecureDataBag
|
|
70
70
|
end
|
71
71
|
|
72
72
|
def serialize_value(value)
|
73
|
-
|
73
|
+
Yajl::Encoder.encode(:json_wrapper => value)
|
74
74
|
end
|
75
75
|
|
76
76
|
def openssl_encryptor
|