Hi, I'm trying to create a simple client server program that allows the client to request a file from the server and the server then encrypts the file and sends it along with its public key and the signature created using RSACryptoServiceProvider through the socket connection. But I can't seem to figure out how to export the public parameters to the client so that the file can be decrypted and verified on that side.
I know how to encrypt the file and create the signature but how exactly would you send the public key through the socket.
Any ideas would be greatly appreciated.
I know how to encrypt the file and create the signature but how exactly would you send the public key through the socket.
Any ideas would be greatly appreciated.