Code Monkey home page Code Monkey logo

arcade-haven's People

Contributors

jbinx avatar jcardenas7 avatar nawakhtha avatar yuanqili avatar zhanchengqian avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

zhanchengqian

arcade-haven's Issues

Security consideration

Goal: Messages are encrypted and then transmitted through the server (stored in server's database), but the server doesn't know anything about the message. It just passes the message to the target client.

Idea: Using public/private key pair.

Detail:

  • PA, VA: public and private key of Alice, PB, VB: public and private key of Bob.
  • Server will store all users' public keys.
  • For a message msg, Alice sends PA(msg) and PB(msg), i.e., the message encrypted using Alice's public key and Bob's public key.
  • Server will sends PB(msg) to Bob. Bob is able to view the message by VB(PB(msg)) using his private key.
  • If Alice wants to view her message history, she can acquire PA(msg) from the server, and decrypt using her private key VA.

Dialog logic needs to be refined

  • Sender and Listener should be loosely coupled. Current Listener needs the socket created by the Sender. There should be a super class of Sender and Listener.
  • Sender needs User object to extract user's uid. While this is unnecessary because the server will definitely know user's uid.

Log in/off server

Records user log in/off, telling the IM server user activities. Validate login information via SQL server.

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.