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

@secured_task decorator bug #101

Open
JankesJanco opened this issue Oct 8, 2018 · 0 comments
Open

@secured_task decorator bug #101

JankesJanco opened this issue Oct 8, 2018 · 0 comments

Comments

@JankesJanco
Copy link
Member

JankesJanco commented Oct 8, 2018

When generating security data (for task decorated with @secured_task decorator) using function wrap_plain_data_as_secure from security_helper.py, following error occurs:

File "/usr/local/lib/python3.6/site-packages/zsl/utils/security_helper.py", line 54, in compute_token
sha1hash.update(random_token + secure_token)
TypeError: Unicode-objects must be encoded before hashing

The error occurs only when using Python3. For Python2 it works.

@JankesJanco JankesJanco changed the title @secured_task decorator @secured_task decorator bug Oct 8, 2018
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

No branches or pull requests

1 participant