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 +5 -5
- data/lib/cookie_decryptor/decryptor.rb +1 -1
- data/lib/cookie_decryptor/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 844f42dd100c7153d6c3efcca1533cdfc0456a8cb8d263ac4d13ef7dc5dca522
|
4
|
+
data.tar.gz: 785345dc027393b4c2e504c0bc80e69134a7f7d16ac2a7f3141aab06ca26238d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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,
|
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.
|
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:
|
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
|
-
|
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.
|