PHP Secure Chat: Chat box between users using encrypted messages

Recommend this page to a friend!
  Info   View files Example   View files View files (10)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2020-12-20 (2 months ago) RSS 2.0 feedNot enough user ratingsTotal: 1,080 This week: 5All time: 3,424 This week: 62Up
Version License PHP version Categories
cchat 2.3GNU General Publi...5PHP 5, Cryptography
Description Author

This package implements chat box between users using encrypted messages.

It can output HTML and JavaScript to implement a chat box between users.

They use a commonly agreed password to encrypt the messages using BlowFish before they are sent to the server via AJAX.

The server stores the encrypted messages in a MySQL database before they are delivered and decrypted to other chat users with the same password.

Innovation Award
PHP Programming Innovation award nominee
January 2017
Number 12


Prize: One ebook of choice by Packt
When you want to implement a chat system between users of your application or site, there is always the concern that the messages may be viewed by people that manage the site, or even by spies and secret services because messages may have to be stored in the server before delivering them to the other users in the chat.

One way to avoid this problem is to implement end to end cryptography. This means that messages are encrypted before sent from the origin user and only decrypted by the destination users.

This package provides a solution to implement such approach in PHP. It uses some JavaScript to encrypt messages before sending from the origin user browser using the Blowfish algorithm.

It uses a secret key that only the origin and destination users know about. This way messages may be securely stored on the server database to be able to deliver to the recipient later when he is not online, without the risk of a third party viewing the messages without knowing the secret password.

Manuel Lemos
Picture of Martin Latter
  Performance   Level  
Name: Martin Latter <contact>
Classes: 8 packages by
Country: United Kingdom
Innovation award
Innovation award
Nominee: 5x

  Files folder image Files  
File Role Description
Files folder imageclasses (1 file)
Files folder imagecss (1 file)
Files folder imageincludes (2 files)
Files folder imagejs (2 files)
Files folder imagesql (1 file)
Accessible without login Plain text file index.php Example Example script
Accessible without login Plain text file install.php Example Example script
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  classes  
File Role Description
  Plain text file cchat.class.php Class Class source

  Files folder image Files  /  css  
File Role Description
  Accessible without login Plain text file cchat.css Data Auxiliary data

  Files folder image Files  /  includes  
File Role Description
  Accessible without login Plain text file check.php Example Example script
  Accessible without login Plain text file update.php Example Example script

  Files folder image Files  /  js  
File Role Description
  Accessible without login Plain text file bf.js Data Auxiliary data
  Accessible without login Plain text file cchat.js Data Auxiliary data

  Files folder image Files  /  sql  
File Role Description
  Accessible without login Plain text file cchat.sql Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 100%
Total:1,080
This week:5
All time:3,424
This week:62Up

For more information send a message to info at phpclasses dot org.