from django.contrib.auth.hashers import check_password ret = check_password('pbkdf2_sha256$150000$LBaozG7pOJi0$NmnUi3PdroAB5tXlnzu3IARdnzUYE+n5lLEPb0/Zm0I=',encoded='pbkdf2_sha256') print(ret)