What is the un-encrypted password? I suspect, there is something in there
which is not unicode.
On Tuesday, 7 May 2013 09:01:53 UTC-5, vikas gupta wrote:
>
> I tried that.. now the logger statement throws the same error:
>
> File "/home/www-data/web2py/applications/trotez/controllers/default.py",
> line 185, in userRegister
> logger.debug("encrypted passwd - %s" % str(encpasswd))
> File "/home/www-data/web2py/gluon/validators.py", line 2760, in __str__
> hashed = simple_hash(self.password, key, salt, digest_alg)
> File "/home/www-data/web2py/gluon/utils.py", line 87, in simple_hash
> int(keylen), get_digest(alg))
> File "/home/www-data/web2py/gluon/contrib/pbkdf2.py", line 55, in
> pbkdf2_hex
> return pbkdf2_bin(data, salt, iterations, keylen,
> hashfunc).encode('hex')
> File "/home/www-data/web2py/gluon/contrib/pbkdf2.py", line 65, in
> pbkdf2_bin
> mac = hmac.new(data, None, hashfunc)
> File "/usr/lib/python2.7/hmac.py", line 133, in new
> return HMAC(key, msg, digestmod)
> File "/usr/lib/python2.7/hmac.py", line 72, in __init__
> self.outer.update(key.translate(trans_5C))
> TypeError: character mapping must return integer, None or unicode
>
>
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.