'Creates an HMAC/SHA1 hash based on the value and the project setting\'s
SECRET_KEY, modified to make it unique for the present purpose.'

def _hash(self, value):

    key = ('django.contrib.messages' + settings.SECRET_KEY)
    return hmac.new(key, value, sha_hmac).hexdigest()
