{"id":19920717,"url":"https://github.com/kkanho/chat","last_synced_at":"2026-04-11T05:35:40.184Z","repository":{"id":242272866,"uuid":"776302742","full_name":"kkanho/chat","owner":"kkanho","description":"A secure chat web application","archived":false,"fork":false,"pushed_at":"2025-03-22T08:42:18.000Z","size":17858,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-25T04:59:51.913Z","etag":null,"topics":["chat-app","docker","docker-compose","end-to-end-encryption","javascript","nginx","python"],"latest_commit_sha":null,"homepage":"https://kkanhoe2eechat.azurewebsites.net","language":"HTML","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/kkanho.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,"zenodo":null}},"created_at":"2024-03-23T05:59:38.000Z","updated_at":"2025-05-08T11:41:42.000Z","dependencies_parsed_at":"2025-08-25T03:44:09.545Z","dependency_job_id":"dce54ff5-c4e9-44c3-947d-534d3ee25ba5","html_url":"https://github.com/kkanho/chat","commit_stats":null,"previous_names":["kkanho/chat"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kkanho/chat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkanho%2Fchat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkanho%2Fchat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkanho%2Fchat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkanho%2Fchat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kkanho","download_url":"https://codeload.github.com/kkanho/chat/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkanho%2Fchat/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31670374,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T17:19:37.612Z","status":"online","status_checked_at":"2026-04-11T02:00:05.776Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["chat-app","docker","docker-compose","end-to-end-encryption","javascript","nginx","python"],"created_at":"2024-11-12T22:05:52.845Z","updated_at":"2026-04-11T05:35:40.161Z","avatar_url":"https://github.com/kkanho.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Chat - Group_39\nA secure chat web application\n\n# Demonstration videos:\n[![ATM demo](https://img.youtube.com/vi/Pk3HRQ5v5B4/0.jpg)](https://www.youtube.com/watch?v=Pk3HRQ5v5B4)\n\n\n## Available Scripts\n```sh\n#Clone this repository(chat)\ngit clone https://github.com/kkanho/chat\n\n#Change to the correct directory\ncd chat\n\n#Build the server through docker\ndocker-compose up --build\n```\nTo view it in the browser,\nopen [http://group-39.comp3334.xavier2dc.fr:8080/](http://group-39.comp3334.xavier2dc.fr:8080/)\nor with TLSv1.3 [https://group-39.comp3334.xavier2dc.fr:8443/](https://group-39.comp3334.xavier2dc.fr:8443/)\n\n## Features\n\n### Part 1 - Authentication\n- [x] User-chosen memorized Secret (password/passphrase)\n- [x] Single-Factor OTP Device (Google Authenticator)\n- [x] Look-Up Secrets (recovery keys)\n- [x] Password salted and hashed \n- [x] Password verifiers - check against corpus form haveibeenpwned api\n- [x] Implement rate-limiting mechanisms\n- [x] Image-based CAPTCHAs\n- [x] OTP bind to new account when registration\n- [x] Implement proper session binding requirements\n- [x] Provide a way to change authenticators after account registration\n\n### Part 2 - E2EE chat\n- [x] ECDH key exchange - establish a shared secret between two users\n- [x] Underlying curve - P-384\n- [x] Derive two 256-bit AES-GCM encryption keys\n- [x] Derive two 256-bit MAC keys\n- [x] Share secret using HKDF-SHA256\n- [x] Unique salt for each message\n- [x] Represent the info using JSON, console log in dev tools\n- [x] Message encrypted using AES in GCM mode\n- [x] Prevent replay attacks as a recipient\n- [x] All key material stored in local storage\n- [x] All history messages should be display\n- [x] Show warning if previous messages cannot be decrypted\n- [x] Refresh button - re-derived all the symmetric key and IV and with a new salt\n- [x] Keep all old keys in local storage for next login\n- [x] Error message notify the user if the key is not found/cleared\n- [x] Protected against CSRF or XSS or SQL injection (samesite: lax)\n\n### Part 3 - TLS\n- [x] Communications encrypted - protect data in transit with TLSv1.3\n\nTo use TLS in your own browser, set the root CA(COMP3334 Project Root CA 2024) to always trust\n\u003c!--- \n- ![image](https://github.com/kkanho/chat/assets/97432128/3fa19122-46fa-4463-bc2a-c8f991a7bd00)\n- ![image](https://github.com/kkanho/chat/assets/97432128/b23cf8de-8785-46b3-b782-c267608d87ca)\n              --\u003e\n### Webapp (Front-end)\n- [x] Ability to sign up, login and logout\n- [x] zxcvbn password strength meter\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkkanho%2Fchat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkkanho%2Fchat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkkanho%2Fchat/lists"}