Click here to Skip to main content
15,887,375 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
The project consists of three tasks:

T1. Implementation of the cryptographic algorithm RC4.

T2. Implementation of a communication protocol with no algorithm created in T1.
<pre>- Secure Communication Protocol

The objective is to make use of the RC4 algorithm interface developed in task T1 to


What I have tried:

I want to make this problem in C #
Posted
Updated 1-Feb-17 21:46pm
Comments
[no name] 1-Feb-17 16:20pm    
"I want to make this problem in C #", okay go right ahead and do that. Good luck.
Dave Kreskowiak 1-Feb-17 16:37pm    
Considering UDP does NOT guarantee the delivery of packets, not even the order in which they arrive!, I find the concept of encrypted data over an unreliable socket a rather ridiculous idea.

If you have a block of data that spans multiple packets and a problem occurs with one or more of the packets, you're not going to be able to decrypt the data at all.

Oh! And RC4 is considered broken because of multiple vulnerabilities in it.

1 solution

If you have to implement yourself the algorithm then have a look at its own Wikipedia page: RC4 - Wikipedia[^]. You may also use Google to find out some existing C# implementations[^].
Once you're sure your encryption/decryption routines work, then you may use the UdpClient[^] class (or directly the Socket[^] class, if required so) to implement the communication part.
 
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