diff --git a/content/templates/content/category_form.html b/content/templates/content/category_form.html deleted file mode 100644 index 3d86f22..0000000 --- a/content/templates/content/category_form.html +++ /dev/null @@ -1,7 +0,0 @@ -{% extends 'base.html' %} -{% block content %} -
{% csrf_token %} - {{ form.as_p }} - -
-{% endblock %} diff --git a/site_tps/qaes.py b/site_tps/qaes.py deleted file mode 100644 index ee04139..0000000 --- a/site_tps/qaes.py +++ /dev/null @@ -1,26 +0,0 @@ -import string -from random import choice -from Crypto.Cipher import AES - -EOD = '`%EofD%`' # This should be something that will not occur in strings - - -def genstring(length=16, chars=string.printable): - return ''.join([choice(chars) for i in range(length)]) - - -def encrypt(key, s): - obj = AES.new(key) - datalength = len(s) + len(EOD) - if datalength < 16: - saltlength = 16 - datalength - else: - saltlength = 16 - datalength % 16 - ss = ''.join([s, EOD, genstring(saltlength)]) - return obj.encrypt(ss) - - -def decrypt(key, s): - obj = AES.new(key) - ss = obj.decrypt(s) - return ss.split(EOD)[0]