Code Monkey home page Code Monkey logo

cschat's Introduction

CSCHAT

Introduction

CSCHAT is an end-to-end encrypted chat platform, provides a secure and easy to use environment for communication. All messages are encrypted at frontend, your messages can only visible for you and the receiver.

Encryption

Messages are encrypted at the frontend, the encryption is based on RSA, only the public key will be stored on the server and visible for you contacts. Private keys will be generated at sign in.
The encryption API is using wwwtyro/cryptico

Deployment

  • Database
    Database structure: ./db.sql
    • Import databse
      This project is developed on MySQL, using PHPMyAdmin to export the database structure.
      Create a new database in your MySQL server.
      You can use any other database management software to import the database.
    • Database user settings
      Create a new user or use existing user for CSCHAT, grant SELECT, INSERT, UPDATE and DELETE privileges to that user on the database created before.
      Modify ./api/include/dbdetails.php according to the account.
  • Webserver
    You can choose any webserver which includes PHP, eg. Nginx with PHP or Apache. Put all files under the webserver's web directory and you are good to go.
    • Notice
      The sign in function uses SubtleCrypto.digest(), it requires secure network environment to work. Which means it only works on HTTPS or localhost.
      Grant read and write access to upload directory
      Do not put db.sql in your web server.

Working functions

  • Basic functions
    • Sign in
    • Sign out
    • Multidevice sign in
  • Account
    • Registration
    • Store/modify basic profile
    • Store/modify avatar
    • Store/modify password
  • Contacts
    • Display chat list
  • Encryption
    • Encrypt/decrypt messages
    • Encrypt password
  • Messages
    • Text messages
    • Emoji
  • UI
    • Animation
    • Mobile version compatable

Todo list

  • Basic functions
    • Web page auto jumping
    • Multidevice session management
  • Account
    • Store/modify detail profiles
  • Contacts
    • Friends requests
    • Display contact list
  • Encryption
    • Encrypt/decrypt multimedia messages
  • Messages
    • New message notifications
    • Multimedia (image/audio/video)
  • UI
    • Bug fix

Known Bugs

  • Contacts with the same password, system can not distinguish sender and receiver.

cschat's People

Contributors

lzq98 avatar

Stargazers

 avatar

Watchers

 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.