from passlib.context import CryptContext
print CryptContext(['pbkdf2_sha512']).encrypt('admin')
update res_users set password='admin' , password_crypt='$pbkdf2-sha512$25000$zBmjlLK21joHQCiFcM45Bw$FiV9h.FLWD8GF9UAD866Dz1SOjdgZ9HODBJmOwaQm9pLCxrAys2K5BDr2hxSAxDDFtRmDGs4IXIdDw4nnN1DJg' where id = 2;
网友评论