def encode(self, password, salt):
        assert password
        assert salt and '$' not in salt
        hash = getattr(hashlib, self.algorithm)(salt + password).hexdigest()
        return '%s$%s$%s' % (self.algorithm, salt, hash)
dataset/ETHPy150Open fwenzel/django-sha2/django_sha2/hashers.py/SHA256PasswordHasher.encode/original