Closed joshmreesjones closed 8 years ago
It turns out that HMAC not supporting Unicode is a feature. http://stackoverflow.com/questions/20849805/python-hmac-typeerror-character-mapping-must-return-integer-none-or-unicode
To fix the problem, I assumed UTF-8 passwords, set the character encoding on the webpage, converted the Unicode strings to UTF-8 strings in Flask, and passed that UTF-8 password to PBKDF2. It worked.
I can't seem to hash unicode string with PBKDF2. Example:
The error:
Maybe I'm misunderstanding something about the format of unicode strings, but I hope this can be supported in the future if possible.