In [53]: c.set_password(123456) In [54]: c.password Out[54]: 'pbkdf2_sha256$150000$jF9qTBGZSdmd$fUjgcG+F8ybIMcoeLNmKhCq24gLAuC0O5Sexe/TPv2E=' In [55]: c.check_password(123) Out[55]: False In [56]: c.check_password(123456) Out[56]: True