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.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