title: conversion from publickey fromate to string and vise versa
body: <p>hi am doing simple tcp client server program. also am using chiper method to encrypt the data transfer.Initially client sending the request to server. At server end it accepts the client and it sends the public key of server to client. In client side it uses the public key of server and encrypt the data using that key. here is the problem what am facing
      to send the sever public key, am converting public key data type to string and am sending it. but am not able to convert it into public key data type. Is the any inbuild method to convert public key to string and vise versa??how to covert it..please guide me...</p>