Add support for runtime configuration
I'm building an application which serves many domains. Each domain has its own cookie secret so I need to be able configure the Encryptor at runtime.
I've quickly modified the rack app in my branch to achieve this:
https://github.com/RestPack/encrypted_cookie/blob/master/lib/encrypted_cookie.rb
Perhaps we could include a second version of the rack application for cases where the configuration is set at runtime? Is this something that you would be interested in including in this gem? I'll work on a proper PR with specs if you are.
+1
I would use that feature if available..
@cvonkleist Is this something that you'd like in this gem? Let me know and I'll cut a PR
@GavinJoyce I'm overloaded with other projects ATM, and feeling really guilty about how long it takes me to get to issues and PRs. Making you a collaborator!
Great, thanks. I'll work on this soon.