dtk_crd_parser 0.0.105 → 0.0.106
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/crd_parser/base_class/helper_mixins.rb +1 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 89533172658ed158134bf0f487d912820a1df6fe9d9bb96a022a43309792b73a
|
4
|
+
data.tar.gz: f7c30d80fa0e0f497d9894f738d38e1b19ec8553aea8db91712acca6a3dc3e8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06a2c428191042be4d60192d4ed40458c36da6f97776db1213329cd806a6b1d51128b8288bc2591e75b7c8d083607beee5f24ac5c88bb37518441ae2f3ec0cd0
|
7
|
+
data.tar.gz: e5b0e47a6079bba33c7b8f4f812c32511814e8b2a7c2181442a87c0332ea89c53c822576d73e392672cfaa366d1bc68782b22d1d16ee1eb3ccc52fa6585aa6d4
|
@@ -30,7 +30,6 @@ module DTK::CrdParser
|
|
30
30
|
def decrypt_if_encrypted(data_to_decrypt, encrypted)
|
31
31
|
return nil unless data_to_decrypt
|
32
32
|
return data_to_decrypt unless encrypted
|
33
|
-
|
34
33
|
#get secret to get the key
|
35
34
|
secret = secret()
|
36
35
|
decipher = OpenSSL::Cipher::AES256.new :CBC
|
@@ -44,7 +43,7 @@ module DTK::CrdParser
|
|
44
43
|
plain_text = decipher.update(encrypted) + decipher.final
|
45
44
|
plain_text
|
46
45
|
rescue => exception
|
47
|
-
Logger.new('/proc/1/fd/1').error exception
|
46
|
+
Logger.new('/proc/1/fd/1').error exception.message
|
48
47
|
end
|
49
48
|
end
|
50
49
|
|