1.md5
from hashlib import md5
md5(password).hexdigest()
2.PBKDF2
from pbkdf2 import PBKDF2
PBKDF2.crypt(password, iterations=0x2537)