lib/roda/plugins/sessions.rb in roda-3.79.0 vs lib/roda/plugins/sessions.rb in roda-3.81.0

- old
+ new

@@ -474,10 +474,10 @@ serialized_data << padding_data if padding_data serialized_data << json_data cipher_secret = opts[:cipher_secret] - if per_cookie_secret = opts[:per_cookie_cipher_secret] + if opts[:per_cookie_cipher_secret] version = "\1" per_cookie_secret_base = SecureRandom.random_bytes(32) cipher_secret = OpenSSL::HMAC.digest(OpenSSL::Digest::SHA256.new, cipher_secret, per_cookie_secret_base) else version = "\0"