def gen_sha512(salt, password): """ generate sha512 format password ??sha512???? """ return crypt.crypt(password, '$6$%s$' % salt)