Click here to Skip to main content
15,879,096 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i am working on a college project on encryption and decryption. i am facing a problem. The idea is to input data from user on computer 1 and encrypt it on it and send this data to computer 2 but i don't know ways to transfer it inside the software since i don't want the user to manually do the copy paste i want the software itself to fetch this encrypted data and decrypt it.

What I have tried:

i have not tried anything since i lack the knowledge to perform this function.
Posted
Updated 23-Apr-17 4:36am
Comments
Richard MacCutchan 23-Apr-17 3:20am    
You could use sockets, but that requires a client server setup. Much easier just to us files and copy them over manually.

Just the way Richard mentions in his comment to your question, you can use sockets to establish a network connection and send the file over to that machine. Once you have encrypted the message, ping the device and request it to allow your device to send the data. Once the connection has been established, start sending the data. Then, on the other side, receive the data and decrypt it there.

Primarily, it is simpler than it sounds, the only addition is of TcpListener and TcpClient objects that would both applications to communicate over the network.

I wrote just the article that covers everything you may want to know before proceeding with creation of such applications, that can communicate on the network, have a look at it here, Creating a server/client application using native .NET TCP library[^]. Then you can send the data from one machine to another.
 
Share this answer
 
How long do you have to work on this project? Get the base functionality down first. Encrypt to a file, manually copy it over to the other machine, and decrypt it. When you get this done ONLY THEN do you try to expand on it. It's better to have the core functionality working when you turn it in than to have it not working because you spent all of your time trying to get something else working that doesn't have anything to do with the project, and the functionality you want is going to take a lot of time and resources to get working.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900