b='sha512$$83d97b71499bee6b9d42dee9d3a6e5d00ecc8c891346d25d1909b3aac9abaa0ad4864fe4eacf159cd3f4a0ad764178d014ac378dfffc5e4023f6dbcfb0992648'
where b is exactly my mobile password string that I'm sending to web2py trough "Json"
>>> b
'sha512$$83d97b71499bee6b9d42dee9d3a6e5d00ecc8c891346d25d1909b3aac9abaa0ad4864fe4eacf159cd3f4a0ad764178d014ac378dfffc5e4023f6dbcfb0992648'
>>> a= CRYPT(digest_alg='sha512',salt=False)('pippo')[0]
now ,if I do a==b, it returns True
The problem is that I'm not able to compare auth.user password with my mobile password!
Both are encrypted, with the same algorithm, but auth.login_bare(user,psw) returns alway false because it wants clear-password
The solution to me appears that I have to compare the two encrypted password, but may be on the wrong way.
Help please...
Marco