Hack Forums
[C#] Easy to use Asynchronous Networking Library - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [C#] Easy to use Asynchronous Networking Library (/showthread.php?tid=6075687)



Easy to use Asynchronous Networking Library - Paskowsky - May 7, 2020

Hello HF!

I just wanted to share this library I made.

https://github.com/Paskowsky/NetworkingStack

It's a easy to use,event-based, extensible, plug and play networking library.

Features :

Hashing of packets
-SHA1 is used but it can be changed to anything else with a simple change in code.

Encryption of packets with prevention of passive MITM attacks
-Client generates an RSA Key and sends it's public key to server.
-Server generates AES encryption key and send it back to client encrypted with client publickey.
-Client decrypts received key and start the encrypted session.

You can checkout the Example folder for a simple yet useful chatroom.

[Image: neFckdu.png]

Regards,
Paskowsky :blackhat:


RE: Easy to use Asynchronous Networking Library - Siy - May 7, 2020

Very interesting. Thank you for sharing!

Hope the C# Section gets more love like this !


RE: Easy to use Asynchronous Networking Library - VisualSoft - May 7, 2020

(May 7, 2020 11:16 AM)Siy Wrote:  Very interesting. Thank you for sharing!

Hope the C# Section gets more love like this !

you are correct, .net section is getting less active day by day.
we need more users like op


RE: Easy to use Asynchronous Networking Library - Exalted - May 8, 2020

(May 7, 2020 10:52 AM)Paskowsky Wrote:  -snip-

Pretty cool OP!
I would've liked it more if it did not require .NET Framework though.

(May 7, 2020 11:16 AM)Siy Wrote:  Very interesting. Thank you for sharing!

Hope the C# Section gets more love like this !

Exactly! We need more active people in this section.


RE: Easy to use Asynchronous Networking Library - Accord - May 8, 2020

OP only posting thread just to share his work, kudos to you paskowsky. keep it up


RE: Easy to use Asynchronous Networking Library - iSevere - May 8, 2020

Good job !
However you should try to always avoid locks if possible . You can use ConcurrentQueue which is more efficient and fast than using locks.
Also using queues is not scalable for many users writting concurently.


RE: Easy to use Asynchronous Networking Library - SaketSaket - May 9, 2020

nice to see some activity in the section... great work OP.