diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-05-29 00:16:22 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-05-29 00:16:22 +0200 |
commit | 5f1c75fd93af98a5d870424971f0383ac4614058 (patch) | |
tree | d0e3d5d00295cdd5c9f65a755254aced21a6ff68 /module/remote/RequestHandler.py | |
parent | premium and free download works with rapidshare (diff) | |
download | pyload-5f1c75fd93af98a5d870424971f0383ac4614058.tar.xz |
socket server basic
Diffstat (limited to 'module/remote/RequestHandler.py')
-rw-r--r-- | module/remote/RequestHandler.py | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/module/remote/RequestHandler.py b/module/remote/RequestHandler.py new file mode 100644 index 000000000..9964c90c0 --- /dev/null +++ b/module/remote/RequestHandler.py @@ -0,0 +1,29 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +""" +authored by: RaNaN + +this module handels the incoming requests + +""" + +import base64 +from cPickle import Pickler +from cStringIO import StringIO +from Crypto.Cipher import AES + + +class RequestHandler(): + def __init__(self, core): + self.core = core + self.p = Pickler(string) + self.obj = AES.new('pw', AES.MODE_ECB) + + def proceed(self, data): + return "the answer." + + def decrypt(self, string): + string = string + buf = StringIO(string) + + |