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

use bcrypt #18

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

use bcrypt #18

wants to merge 2 commits into from

Conversation

mtigas
Copy link

@mtigas mtigas commented Jun 21, 2012

allows optional bcrypt integration to make this 200% more secure

/cc @tkaemming

mtigas added 2 commits June 21, 2012 16:15
allows optional bcrypt integration to make this 200% more secure
@@ -19,7 +24,10 @@ def mangodb(socket, address):
if os.environ.get('MANGODB_DURABLE', False):
output.flush()
os.fsync(output.fileno())
client.write('OK' + os.urandom(1024).encode('string-escape') + '\r\n')
data = os.urandom(1024)
if os.environ.get('MANGODB_USE_BCRYPT', False):
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be changed to if bcrypt: ? feels more pythonic

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.

3 participants