Recommend this page to a friend! |
Download |
Info | Documentation | Files | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not enough user ratings | Total: 178 | All time: 292 This week: 2 |
Version | License | JavaScript version | Categories | |||
cchat 1.0.6 | GNU General Publi... | 2 | AJAX, Cryptography, Chat |
Description | Author | |||
This package implements a chat system that exchanges encrypted messages. Innovation Award
|
[1]: https://tinram.github.io/images/cchat.png ![cchat][1]
Uses a previously agreed password with the recipient, avoiding any initial key exchange across a network.
The Blowfish block cipher is simple, strong, and fast. Its speed is ideal for JavaScript implementation.
Clone the repository (or extract the ZIP archive) into a suitable directory in the server's web directory e.g.
`cd /var/www/html`
`sudo git clone https://github.com/Tinram/CChat.git`
On Linux/BSD servers, set appropriate file ownership / permissions e.g. for Debian-based distros, Apache is www-data:
`sudo chown -R www-data:<username> CChat/`
`cd CChat`
`sudo chmod 664 install.php classes/cchat.class.php`
Execute install.php via the terminal: `php install.php` or through the server:
`http://localhost/CChat/install.php`
(which, if you have root MySQL access, should mean set-up is now complete)
View CChat's index.php in a browser, which if install.php ran correctly, should display without connection errors to the server, and display init: test as the first message.
`http://localhost/CChat/`
Alter the timezone if required: index.php (line 7):
`date_default_timezone_set('Europe/London');`
The decrypt button will decrypt existing encrypted messages in field 1, if the correct password is present in field 2.
Enter your name in field 2, password in field 3, and a message in field 4, then click the chat button.
A page refresh (encrypted messages displayed) or the wrong password will result in gibberish displayed in field 1.
The AJAX polling is 6 seconds between server checks for new messages (change the iCheckFreq
variable (in microseconds) /js/cchat.js (line 21)).
The last hour's messages are displayed in field 1 (change the MESSAGE_BUFFER
constant /classes/cchat.class.php (line 25)).
Unicode character encoding is unfortunately not possible with the present JavaScript Blowfish cipher encryption (the reason the database remains as latin1 encoding).
CChat is released under the GPL v.3.
<small>Won a JS Classes Innovation Award (August 2016).</small>
Files (10) | / | includes |
File | Role | Description |
---|---|---|
check.php | Data | Auxiliary data |
update.php | Data | Auxiliary data |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.