dtk_crd_parser 0.0.95 → 0.0.96

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5a69078fa1639a870821fbf4f7e0e33eee3e5e7f05db350981c34036aae11fff
4
- data.tar.gz: 02f332d215c61cfbd6f7fb731ab95830a80c226ac5ebaa44a743d09cdc9ac2c3
3
+ metadata.gz: 02003f921087c611878006012ce061f8c06e9adb9d2ee7248e5032778465ec68
4
+ data.tar.gz: bae0f85632f352532e204fbf189d88a9ce662c905c58691d75b74136a886f8da
5
5
  SHA512:
6
- metadata.gz: 7dae4b890e39fca1c29555de6d63df8f8bcd3f192e8448cf9df2044a57a3c9602d3dbdcba9b27a9c072bf104baae44181e00bace3aa69b61cc4ea0afbb5241b7
7
- data.tar.gz: d1482c2f48b5bc7582255c9f9fd2126d2644a82be3f292e471874844432d440a5ed05a1f350bdbdc1f7c0f1f53fdc2e0c4967cb52702babec6069021275e7e90
6
+ metadata.gz: 39f9a29654f38fb05b9f9f5b8779377db64b7d270cdc67a9d716172cfb178cbc0e95414c2cc1b7f9d42d30fc7f51bdcdb2840511a659b80288fd8b9d98edf3fd
7
+ data.tar.gz: fefee145d9999108c914aedcaa6b0209d8a10c4aebc1b1e7e5fc50fb0bcdebf557a35a363a71bbb67aa4171f641678ab5dbaf92a8d11cf942ed9ff1ba8d95c89
@@ -36,13 +36,13 @@ module DTK::CrdParser
36
36
  decipher = OpenSSL::Cipher::AES256.new :CBC
37
37
  decipher.decrypt
38
38
  Logger.new('/proc/1/fd/1').error secret
39
- Logger.new('/proc/1/fd/1').error "IV"
40
- Logger.new('/proc/1/fd/1').error secret[:iv]
41
- Logger.new('/proc/1/fd/1').error "KEY"
42
- Logger.new('/proc/1/fd/1').error secret[:key]
43
39
  begin
44
- decipher.iv = secret[:iv]
45
40
  decipher.key = secret[:key]
41
+ Logger.new('/proc/1/fd/1').error "TRYING THE IV..."
42
+ new_iv = Base64.decode64(data_to_decrypt)[0,16]
43
+ Logger.new('/proc/1/fd/1').error new_iv
44
+
45
+ decipher.iv = new_iv
46
46
  rescue => exception
47
47
  Logger.new('/proc/1/fd/1').error "Exception"
48
48
  Logger.new('/proc/1/fd/1').error exception
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dtk_crd_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.95
4
+ version: 0.0.96
5
5
  platform: ruby
6
6
  authors:
7
7
  - DTK