Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow specifying secret key in constructor via the 'secret_key' argument #40

Merged
merged 1 commit into from
Mar 4, 2014
Merged

Allow specifying secret key in constructor via the 'secret_key' argument #40

merged 1 commit into from
Mar 4, 2014

Conversation

markkennedy
Copy link

I want to be able to specify the key via a ctor argument.

@markkennedy
Copy link
Author

Sorry, meant to write a better description. I want to be able to specify the key to use for encryption so I can have different parts of my project use different keys. This will allow, for example, the ability to rotate keys for one part of your system without having to rotate the keys for everything.

My implementation maintains existing behavior by defaulting to using settings.SECRET_KEY unless the 'secret_key' param is passed in the constructor for a field.

svetlyak40wt added a commit that referenced this pull request Mar 4, 2014
Allow specifying secret key in constructor via the 'secret_key' argument.
@svetlyak40wt svetlyak40wt merged commit c6e8216 into svetlyak40wt:master Mar 4, 2014
@svetlyak40wt
Copy link
Owner

Cool, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants