Thank you wysota,
It is a long time that I have send the post and till then I have been trying to solve the problem. And the good thing is I'm just near to solution. I'm able to send the encrypted data, and also able to decode it but only partial i.e only half. I think there is a problem using std::string with binary data.
I'm just trying to figure out and let you know if I get.
I'm really sorry to ask for solution without myself going in depth.
Thanks
Bookmarks