Skip to content

Generation of default encryption key causes exception #17

@reissmann

Description

@reissmann

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'

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions