cookie_decryptor 0.1.0 → 0.2.0

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
- SHA1:
3
- metadata.gz: db283887462ae536cd87b88b67e89565adc8ff43
4
- data.tar.gz: 2e0cbb3a61f755d644875d25c2bb6c98d338fb39
2
+ SHA256:
3
+ metadata.gz: 844f42dd100c7153d6c3efcca1533cdfc0456a8cb8d263ac4d13ef7dc5dca522
4
+ data.tar.gz: 785345dc027393b4c2e504c0bc80e69134a7f7d16ac2a7f3141aab06ca26238d
5
5
  SHA512:
6
- metadata.gz: c9a17946ed6e6428f38228d16c1832c53e93bb7156cf85f597228d50173b40d5000e6476ddec77df3cfce4572e85267e72ad9b8902b0c22e44cf966e03704524
7
- data.tar.gz: fd85484aeec10b7a891bc1624b19f9da590a785f9a791271241bc8bfc394c88622b05fdf400ffb24339edc702adf12dc8f5685b2ff1ffbf4d78864ee4db34491
6
+ metadata.gz: 8507994044d8039a99c908312bc78cc79fadee0b7f04657b93d0d9fc5ea644edef6ec0f83dfffb3738c85f2053bf32aa072478d1f530af72ca03bfa5e4176404
7
+ data.tar.gz: '06248b475914b8bd28e2fa669d76c4724df1b63305cd14139fc87458e9d8cd75bd4634171253a1a274a04bf48b0c47f798aa2c31d0f37af94b15d64458e47428'
@@ -39,7 +39,7 @@ module CookieDecryptor
39
39
  end
40
40
 
41
41
  def encryptor
42
- secret = @key_generator.generate_key("encrypted cookie")
42
+ secret = @key_generator.generate_key("encrypted cookie")[0, ActiveSupport::MessageEncryptor.key_len]
43
43
  sign_secret = @key_generator.generate_key("signed encrypted cookie")
44
44
  ActiveSupport::MessageEncryptor.new(
45
45
  secret,
@@ -1,3 +1,3 @@
1
1
  module CookieDecryptor
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cookie_decryptor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Weiss
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-04-13 00:00:00.000000000 Z
11
+ date: 2019-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -106,8 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
106
  - !ruby/object:Gem::Version
107
107
  version: '0'
108
108
  requirements: []
109
- rubyforge_project:
110
- rubygems_version: 2.5.2
109
+ rubygems_version: 3.0.3
111
110
  signing_key:
112
111
  specification_version: 4
113
112
  summary: Decrypt your secure Rails cookies.