def _gen_hash(self, password, salt):

        # generate hash
        h = hashlib.sha1()
        h.update(salt)
        h.update(password)
        return h.hexdigest()
Wraps methods so they can be called in a more functional way as well
dataset/ETHPy150Open SpriteLink/NIPAP/nipap/nipap/authlib.py/SqliteAuth._gen_hash--crossover with--dataset/ETHPy150Open mozilla/inventory/vendor-local/src/django-tastypie/tastypie/resources.py/Resource.wrap_view