diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-05-31 21:06:18 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-05-31 21:06:18 +0200 |
commit | 3755da2af7e3f79171d505dd81e0c0b63b4adb9f (patch) | |
tree | b2267b76fe897c3c27ce6ed2a019de08c1394647 /module/remote/ClientHandler.py | |
parent | xupi.in works again (diff) | |
download | pyload-3755da2af7e3f79171d505dd81e0c0b63b4adb9f.tar.xz |
gui socket finally works
Diffstat (limited to 'module/remote/ClientHandler.py')
-rw-r--r-- | module/remote/ClientHandler.py | 7 |
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) |