lzq98 / cschat

An end-to-end encryption chat system

Home Page:https://cschat.fun

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

An end-to-end encryption chat system

https://cschat.fun


Languages

Language:HTML 88.2%Language:PHP 6.0%Language:JavaScript 5.8%