{"id":20121599,"url":"https://github.com/suwadith/secure-chatroom-system-ssl-python-mysql","last_synced_at":"2026-04-24T11:35:29.641Z","repository":{"id":100230151,"uuid":"459386958","full_name":"Suwadith/Secure-Chatroom-System-SSL-Python-MySQL","owner":"Suwadith","description":"A basic implementation of a secure chatroom system.","archived":false,"fork":false,"pushed_at":"2022-12-12T20:35:58.000Z","size":92,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-24T10:51:48.068Z","etag":null,"topics":["chatroom","mysql","python","rsa","secure","ssl"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Suwadith.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-15T01:36:58.000Z","updated_at":"2022-12-12T20:39:12.000Z","dependencies_parsed_at":"2023-05-25T23:30:45.815Z","dependency_job_id":null,"html_url":"https://github.com/Suwadith/Secure-Chatroom-System-SSL-Python-MySQL","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Suwadith/Secure-Chatroom-System-SSL-Python-MySQL","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Suwadith%2FSecure-Chatroom-System-SSL-Python-MySQL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Suwadith%2FSecure-Chatroom-System-SSL-Python-MySQL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Suwadith%2FSecure-Chatroom-System-SSL-Python-MySQL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Suwadith%2FSecure-Chatroom-System-SSL-Python-MySQL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Suwadith","download_url":"https://codeload.github.com/Suwadith/Secure-Chatroom-System-SSL-Python-MySQL/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Suwadith%2FSecure-Chatroom-System-SSL-Python-MySQL/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32221774,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T10:26:35.452Z","status":"ssl_error","status_checked_at":"2026-04-24T10:25:27.643Z","response_time":64,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chatroom","mysql","python","rsa","secure","ssl"],"created_at":"2024-11-13T19:30:17.588Z","updated_at":"2026-04-24T11:35:29.606Z","avatar_url":"https://github.com/Suwadith.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Secure-Chatroom-System-SSL-Python-MySQL\n\n## Software requirements\n1. Python 3.4 or above\n2. Latest pip version 21.x.x or above preferred\n\n\n## Setting up the MySQL DB\n1. create a user on the db with username='admin' and password='admin' with all the admin/root privileges\n2. create a database named 'chatroom'\n3. import the resources/chatroom.sql file on to the database\n4. make sure the server is up and running and using the default port\n\n\n## Creating SSL certificates and RSA keys for both the server and client\n1. execute the following command to generate server certificate and key\n\u003e $ openssl req -new -newkey rsa:2048 -days 365 -nodes -x509 -keyout server.key -out server.crt\n\n\u003e NOTE: enter ‘example.com’ for Common Name when asked\n\n2. execute the following command to generate client certificate and key\n\u003e $ openssl req -new -newkey rsa:2048 -days 365 -nodes -x509 -keyout client.key -out client.crt\n\n\u003e NOTE: enter ‘example.com’ for Common Name when asked (Not really required for client though)\n    \n3. place them inside the 'resources' folder\n\u003e NOTE: You can skip this step as the pre created files have been shared inside the resources folder and they will be picked up by the program automatically\n\n\n## Setting up the virtual environment and executing the program\n1. execute the following command on the root directory(basically inside the code repository) to set up the virtual environment\n  \u003e $ python3 -m venv venv\n2. execute the below command on the same directory to use or activate the virtual environment\n  - Windows\n    \u003e $ venv\\Scripts\\activate\n  - Linux\n    \u003e $ source venv/bin/activate\n3. install the dependencies using the following command using the virtual environment\n  \u003e $ pip install -r requirements.txt\n4. run the following command to start the server using the virtual environment (You should only run this once as there can only be 1 server listening for incoming connections on the same port)\n  \u003e $ python secure_server.py\n5. run the following command to start multiple clients using the virtual environment (You can execute this multiple times in different terminals to create multiple client instances)\n  \u003e $ python secure_client.py\n\n\n### Admin commands (username='admin', password='admin')\n  1. kick a specific user\n  \u003e $ /kick username\n  2. warn a particular user\n  \u003e $ /warn username\n  3. ban a particular user\n  \u003e $ /ban username\n  4. view active user list\n  \u003e $ /user_list\n  \n  \u003e Note: This program was developed as part of an assessment given by the Middlesex University\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuwadith%2Fsecure-chatroom-system-ssl-python-mysql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuwadith%2Fsecure-chatroom-system-ssl-python-mysql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuwadith%2Fsecure-chatroom-system-ssl-python-mysql/lists"}