summaryrefslogtreecommitdiffstats
path: root/module/remote/ClientHandler.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/remote/ClientHandler.py')
-rw-r--r--module/remote/ClientHandler.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/module/remote/ClientHandler.py b/module/remote/ClientHandler.py
index 0037a874e..6f60d5176 100644
--- a/module/remote/ClientHandler.py
+++ b/module/remote/ClientHandler.py
@@ -12,11 +12,12 @@ from Crypto.Cipher import Blowfish
from RequestHandler import RequestHandler
class ClientHandler(RequestHandler):
- def __init__(self, client):
+ def __init__(self, client, pw):
self.client = client
- key = hashlib.sha256("pwhere")
+ key = hashlib.sha256(pw)
self.bf = Blowfish.new(key.hexdigest(), Blowfish.MODE_ECB)
def proceed(self, data):
obj = self.decrypt(data)
- return self.encrypt(obj) \ No newline at end of file
+ #evaluate object
+ return self.encrypt(obj)