|
@@ -42,7 +42,6 @@ def post_search(request, search):
|
42
|
42
|
|
43
|
43
|
# select hash function
|
44
|
44
|
f = hashlib.new(function.lower())
|
45
|
|
- #f = hash_function[function.lower()]
|
46
|
45
|
|
47
|
46
|
# make digest from the given string
|
48
|
47
|
f.update(string.strip())
|
|
@@ -51,4 +50,4 @@ def post_search(request, search):
|
51
|
50
|
# print result
|
52
|
51
|
search.result_container.answers.clear()
|
53
|
52
|
search.result_container.answers.add(function + " " + gettext('hash function') + ": " + digest)
|
54
|
|
- return True
|
|
53
|
+ return True
|