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

Generation of default encryption key causes exception #17

Open
reissmann opened this issue Nov 5, 2014 · 2 comments
Open

Generation of default encryption key causes exception #17

reissmann opened this issue Nov 5, 2014 · 2 comments
Assignees
Labels
Milestone

Comments

@reissmann
Copy link
Member

The config declaration for the default encryption key causes an exception if no key is specified in the configuration file.

Is this a python < 3.3 issue?

[...]
File "/home/major/Dev/logzen/backend/src/logzen/web/api/auth.py", line 37, in
default=lambda: random.getrandbits(4096).to_bytes(512, 'little'))
AttributeError: 'long' object has no attribute 'to_bytes'

@reissmann reissmann added the bug label Nov 5, 2014
@reissmann reissmann added this to the 0.1 milestone Nov 8, 2014
@fooker
Copy link
Member

fooker commented Nov 17, 2014

It's available since 3.2: https://docs.python.org/3.2/library/stdtypes.html#int.to_bytes

@fooker
Copy link
Member

fooker commented Nov 17, 2014

Fixed by #23.

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

No branches or pull requests

2 participants