summaryrefslogtreecommitdiffstats
path: root/module/remote/ClientHandler.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-05-31 21:06:18 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-05-31 21:06:18 +0200
commit3755da2af7e3f79171d505dd81e0c0b63b4adb9f (patch)
treeb2267b76fe897c3c27ce6ed2a019de08c1394647 /module/remote/ClientHandler.py
parentxupi.in works again (diff)
downloadpyload-3755da2af7e3f79171d505dd81e0c0b63b4adb9f.tar.xz
gui socket finally works
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)