summaryrefslogtreecommitdiffstats
path: root/module/remote/ClientHandler.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-05-31 15:09:58 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-05-31 15:09:58 +0200
commit69f765b2476b77967588c0751be8afda7dc3adaf (patch)
tree086bc81759dc588d7845a15e43b61867fcac591f /module/remote/ClientHandler.py
parentMerging false heads. fix for forced commit. (diff)
downloadpyload-69f765b2476b77967588c0751be8afda7dc3adaf.tar.xz
new socket encryption
Diffstat (limited to 'module/remote/ClientHandler.py')
-rw-r--r--module/remote/ClientHandler.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/module/remote/ClientHandler.py b/module/remote/ClientHandler.py
new file mode 100644
index 000000000..0037a874e
--- /dev/null
+++ b/module/remote/ClientHandler.py
@@ -0,0 +1,22 @@
+#!/usr/bin/python
+# -*- coding: utf-8 -*-
+"""
+authored by: RaNaN
+
+this module handels the incoming requests
+
+"""
+import hashlib
+
+from Crypto.Cipher import Blowfish
+from RequestHandler import RequestHandler
+
+class ClientHandler(RequestHandler):
+ def __init__(self, client):
+ self.client = client
+ key = hashlib.sha256("pwhere")
+ 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