# -*- coding: utf-8 -*-
import hashlib
# from constants import PASSWORD_SALT


def make_password(raw_password,salt=None):
    if not salt:
        pass
        # salt = PASSWORD_SALT
    if not raw_password:
        return False
    hash_password = hashlib.md5(raw_password+salt).hexdigest()

    return hash_password


def check_password(raw_password,password):
    if not raw_password:
        return False

    temp_password = make_password(raw_password)
    if temp_password == password:
        return True
    else:
        return False

3f7e71ad088711de8c118da91ce7b3b779c3e6d0
<mask token>

<mask token>


def make_password(raw_password, salt=None):
    if not salt:
        pass
    if not raw_password:
        return False
    hash_password = hashlib.md5(raw_password + salt).hexdigest()
    return hash_password


<mask token>

<mask token>


def make_password(raw_password, salt=None):
    if not salt:
        pass
    if not raw_password:
        return False
    hash_password = hashlib.md5(raw_password + salt).hexdigest()
    return hash_password


def check_password(raw_password, password):
    if not raw_password:
        return False
    temp_password = make_password(raw_password)
    if temp_password == password:
        return True
    else:
        return False

import hashlib


def make_password(raw_password, salt=None):
    if not salt:
        pass
    if not raw_password:
        return False
    hash_password = hashlib.md5(raw_password + salt).hexdigest()
    return hash_password


def check_password(raw_password, password):
    if not raw_password:
        return False
    temp_password = make_password(raw_password)
    if temp_password == password:
        return True
    else:
        return False

# -*- coding: utf-8 -*-
import hashlib
# from constants import PASSWORD_SALT


def make_password(raw_password,salt=None):
    if not salt:
        pass
        # salt = PASSWORD_SALT
    if not raw_password:
        return False
    hash_password = hashlib.md5(raw_password+salt).hexdigest()

    return hash_password


def check_password(raw_password,password):
    if not raw_password:
        return False

    temp_password = make_password(raw_password)
    if temp_password == password:
        return True
    else:
        return False
