Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pandh4cker/corosechat
https://github.com/pandh4cker/corosechat
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/pandh4cker/corosechat
- Owner: PandH4cker
- Created: 2022-01-17T15:54:48.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-03-29T15:30:33.000Z (over 2 years ago)
- Last Synced: 2024-08-11T11:46:16.992Z (3 months ago)
- Language: Java
- Size: 14.3 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CoroSechat
## Author: [Raphael Dray](https://www.linkedin.com/in/raphaeldray/)CoroSechat is a chat server over a Secure TCP connection with SmartCard Challenge-Response Authentication based.
It is written in **Java 17** including libraries like so:
* [ActiveJDBC](https://javalite.io/activejdbc)---
## Implementations:
Here is described some implemented features:
* Multi-Threaded Server (Threads for Accepting Connection and the Main thread used to handle Administration Management)
* Server Administration Management
* _/kill username_ -- **Kill a connected user**
* _/killall_ -- **Kill all connected users**
* _/halt_ -- **Stop the server**
* _/deleteAccount username_ -- **Delete an existing account**
* _/addAccount username password_ -- **Add an account**
* _/loadBDD_ -- **Load the Database**
* _/saveBDD_ -- **Save the Database**
* Regular User Server Commands:
* _/logout | /exit_ -- **Disconnect / Quit**
* _/list_ -- **List current connected users**
* _/msg username message_ -- **Send a Private Message to _username_**
* Hand-Crafted Logger
* PostgreSQL Database Persistence in conjunction with ActiveJDBC ORM---
## How it works ?:
Launch the server and connect to it, simple.
```
INFO: 2022-01-22 11:47:18.901 ServerChat: Listening on port 4444
INFO: 2022-01-22 11:48:00.937 ServiceChat: A new user has initiated a connection on IP 0:0:0:0:0:0:0:1
INFO: 2022-01-22 11:48:05.215 ServiceChat: A new user has been created with username Raphael
INFO: 2022-01-22 11:48:12.608 ServiceChat: A new user has initiated a connection on IP 0:0:0:0:0:0:0:1
INFO: 2022-01-22 11:48:19.588 ServiceChat: [Raphael] Coucou
Salut !
INFO: 2022-01-22 11:48:27.503 ServiceChat: Salut !
/list
List of connected users:
Raphael
INFO: 2022-01-22 11:49:32.777 ServiceChat: /list
/killall
INFO: 2022-01-22 11:49:43.169 ServiceChat: Raphael has been killed by the administrator.
INFO: 2022-01-22 11:49:43.173 ServiceChat: /killall
/haltProcess finished with exit code 0
```---
## Improvements:
Some improvements to come further:
- [ ] In-Docker PostgreSQL Deployment
- [ ] PostgreSQL Database Persistence
- [ ] Message Reply
- [ ] Password Hashing