def password_hash(password, salt): """ Generate password hash using sha-1. @type: string @param param: password @type param: string @param: salt """ return sha1(password + salt).hexdigest()
def password_hash(password, salt): return sha1(password + salt).hexdigest()