wework 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wework/cipher.rb +2 -2
- data/lib/wework/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0c98841b29ce00aabf378c3af49d92a9630154ef
|
4
|
+
data.tar.gz: e3b52725ac3c261041b0ee6c8a29ef1ab925b213
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9214b0af6797808be69002d24daa4090e863a9854add081e61f6d817789e6627275b44ec2bbcf27451e72bea0afa9987ca446b7930e866c23e1814e95577c17f
|
7
|
+
data.tar.gz: f9f43733cb23887ad7490862378bb567f38b898abf0aa99a25188a3ed6d0f0acca720041a64693ec789c3c241a29da780b3522224bc3cea61dbf3b46a48eafd0
|
data/lib/wework/cipher.rb
CHANGED
@@ -15,7 +15,7 @@ module Wework
|
|
15
15
|
cipher.padding = 0
|
16
16
|
key_data = Base64.decode64(encoding_aes_key + '=')
|
17
17
|
cipher.key = key_data
|
18
|
-
cipher.iv = key_data
|
18
|
+
cipher.iv = [key_data].pack('H*')
|
19
19
|
|
20
20
|
cipher.update(plain) + cipher.final
|
21
21
|
end
|
@@ -27,7 +27,7 @@ module Wework
|
|
27
27
|
cipher.padding = 0
|
28
28
|
key_data = Base64.decode64(encoding_aes_key + '=')
|
29
29
|
cipher.key = key_data
|
30
|
-
cipher.iv = key_data
|
30
|
+
cipher.iv = [key_data].pack('H*')
|
31
31
|
|
32
32
|
plain = cipher.update(msg) + cipher.final
|
33
33
|
decode_padding(plain)
|
data/lib/wework/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wework
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- seandong
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-06-
|
11
|
+
date: 2017-06-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http
|