﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
27010	Argon2PasswordHasher.encode() decodes underlying hash as UTF-8 instead of ASCII	Chris Foresman	nobody	"The new `Argon2PasswordHasher` returns a `unicode` object in Python 2.7x, though argon2 itself returns only ASCII chars in its hash. Practically speaking this doesn't seem to cause a problem saving this value to a `CharField`, but for consistency's sake it probably needs updated to `decode('ascii')` instead of `decode('utf-8')` as other password hashers do.


Compare:
PBKDF2: https://github.com/django/django/blob/1.10/django/contrib/auth/hashers.py#L259
Argon2: https://github.com/django/django/blob/1.10/django/contrib/auth/hashers.py#L326

See also argon2-cffi: https://github.com/hynek/argon2_cffi/blob/master/src/argon2/_password_hasher.py#L106"	Cleanup/optimization	closed	contrib.auth	1.10	Normal	fixed	argon2, password, hasher		Accepted	0	0	0	0	0	0
