url = 'http://127.0.0.1:6613/'
response = requests.post(url, data=message)
print "Sosemanuk enc \n " + json.dumps(req) +"\n"
data_js_n=sending(json.dumps(req))
answ=json.loads(data_js_n)
print "Recived enc: \n" + (json.dumps(answ)) +"\n\n\n"
dec='{"algorithm":"SOSEMANUK","plaintext":"","iv":"b05691ef92cb9c9bf77e5613819fc4ea",\
"version":1,"key":"7f685ba92789f0d8d421038f2b1b4fcd73be586d81795ec3ab7939975b7b896e","operation":"dec","type":"string"}'
req["plaintext"]=answ["result"]
print "Sosemanuk dec \n " + json.dumps(req) +"\n"
data_js_n=sending(json.dumps(req))
answ2=json.loads(data_js_n)
print "Recived dec: \n" + (json.dumps(answ2)) +"\n\n\n"
data_js='{"algorithm":"SOSEMANUK","plaintext":"Hello world!","hex":0,"iv":"b05691ef92cb9c9bf77e5613819fc4ea",\
"version":1,"key":"7f685ba92789f0d8d421038f2b1b4fcd73be586d81795ec3ab7939975b7b896e","operation":"enc","type":"string"}'