This default value
|
RACK_SESSION = 'rack.session' |
Isn't used when configuring the Encryptor class:
|
encryptor_opts = { |
|
purpose: options[:key], serialize_json: options[:serialize_json] |
|
} |
use Rack::Session::Cookie and Rack::Session::Cookie, key: "rack.session" is the same, both give you a session cookie with key rack.session, but their signature will be different:
|
def compute_signature(data) |
|
signing_data = data |
|
signing_data += @options[:purpose] if @options[:purpose] |