Code Monkey home page Code Monkey logo

encryptedtcp's Introduction

EncryptedTcp

This is my first work. I'm learning C# for a few weeks and I'm want to share my work for everyone. This is VS2013 solution contains the library with examples how to use it.

This library makes secure tcp-connection between server and any number of clients.

You need download sources to your PC, compile it and add as reference to your soloution to use it.

How to use:

  1. Include it in your server-part and override the Server class when you define what you will do with your clients.

  2. Include it in your client-part and just call any methods, which available for Client class to Recieve and Send any data like bytes or plain text

How it works:

  1. Server is running for listening all incoming connections on defined port.

  2. Client connect to server

  3. Server places client to ThreadPool and waiting for a new clients.

  4. In ThreadPool client places in Callback, which you can override, but tou must create instance of the class ServerProcessingEncrypted which includes methods for interaction with client.

  5. When you create ServerProcessingEncrypted instance client will create RSA2048 key pair and sends public key to server

  6. Server recieved client's RSA2048 public key, generates AES256 key, encrypt in by using client's RSA public key and send it back to client.

  7. Client decrypts AES256 key by using private key.

  8. After that any data tdansfer will be encrypted by using AES256.

P.S. - sorry for my worst English and worst code) I want to make some good things for poeple like me. I will be happy if I will helped to someone.

encryptedtcp's People

Contributors

art-of-dev avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.