dtk_crd_parser 0.0.94 → 0.0.95
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 +7 -3
- 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: 5a69078fa1639a870821fbf4f7e0e33eee3e5e7f05db350981c34036aae11fff
|
4
|
+
data.tar.gz: 02f332d215c61cfbd6f7fb731ab95830a80c226ac5ebaa44a743d09cdc9ac2c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7dae4b890e39fca1c29555de6d63df8f8bcd3f192e8448cf9df2044a57a3c9602d3dbdcba9b27a9c072bf104baae44181e00bace3aa69b61cc4ea0afbb5241b7
|
7
|
+
data.tar.gz: d1482c2f48b5bc7582255c9f9fd2126d2644a82be3f292e471874844432d440a5ed05a1f350bdbdc1f7c0f1f53fdc2e0c4967cb52702babec6069021275e7e90
|
@@ -40,9 +40,13 @@ module DTK::CrdParser
|
|
40
40
|
Logger.new('/proc/1/fd/1').error secret[:iv]
|
41
41
|
Logger.new('/proc/1/fd/1').error "KEY"
|
42
42
|
Logger.new('/proc/1/fd/1').error secret[:key]
|
43
|
-
|
44
|
-
|
45
|
-
|
43
|
+
begin
|
44
|
+
decipher.iv = secret[:iv]
|
45
|
+
decipher.key = secret[:key]
|
46
|
+
rescue => exception
|
47
|
+
Logger.new('/proc/1/fd/1').error "Exception"
|
48
|
+
Logger.new('/proc/1/fd/1').error exception
|
49
|
+
end
|
46
50
|
Logger.new('/proc/1/fd/1').error "DATA TO DECRYPT"
|
47
51
|
Logger.new('/proc/1/fd/1').error data_to_decrypt
|
48
52
|
plain_text = decipher.update(Base64.decode64(data_to_decrypt)) + decipher.final
|