# -*- coding: utf-8 -*-

from __future__ import unicode_literals

from django.conf import settings

import hashlib


def make(string):
    return hashlib.md5("{0}-{1}".format(string, settings.SECRET_KEY)).hexdigest()
@@ -136,27 +136,14 @@
     
-return hashlib.md5(
+key = 
 %22%7B0%7D
@@ -187,17 +187,141 @@
 KEY)
-).hexdigest()
+%0A%0A    try:%0A        return hashlib.md5(key).hexdigest()%0A    except TypeError:%0A        return hashlib.md5(key.encode('utf-8')).hexdigest()%0A

fix of 'TypeError: Unicode-objects must be encoded before hashing'