{"id":20506251,"url":"https://github.com/casper64/hai","last_synced_at":"2026-04-19T11:36:09.458Z","repository":{"id":218381416,"uuid":"732820467","full_name":"Casper64/hai","owner":"Casper64","description":"The 100% console based messaging program using the cryptography library in python; a project I made for my cryptograpghy course.","archived":false,"fork":false,"pushed_at":"2024-08-09T21:47:41.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-05T21:41:24.242Z","etag":null,"topics":["cryptography","python","sockets"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Casper64.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2023-12-17T23:18:55.000Z","updated_at":"2024-08-09T21:59:10.000Z","dependencies_parsed_at":"2025-01-16T07:46:20.548Z","dependency_job_id":"262c35cc-b6ef-4aca-9b76-f862a9cced90","html_url":"https://github.com/Casper64/hai","commit_stats":null,"previous_names":["casper64/hai"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Casper64/hai","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Casper64%2Fhai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Casper64%2Fhai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Casper64%2Fhai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Casper64%2Fhai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Casper64","download_url":"https://codeload.github.com/Casper64/hai/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Casper64%2Fhai/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32005821,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"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":["cryptography","python","sockets"],"created_at":"2024-11-15T19:55:28.913Z","updated_at":"2026-04-19T11:36:09.386Z","avatar_url":"https://github.com/Casper64.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Readme\n\nThe 100% console based messaging program using the `cryptography` library in python; a project I made for my cryptograpghy course.\n\nThis code is probably not 100% secure, please only use it for educational purposes.\n\nAll the core functionality of the program are in `hai_core.py`\n\n## Features\n\n- Console based\n- Supports multiple chats at the same time (using non-blocking sockets)\n- Custom handshake based on TLS \n- Supports elliptic curve keys\n- Hmac validates messages (iv's are never reused)\n- Error messages for invalid / unvalidates messages\n\n\u003e **Note**:\n\u003e Public key verification using a CA not implemented.\n\n## Quick Start\n\nThis program was developed and tested using python `3.11.6`.\n\nMake a new virtual environment and instal the required packages\n```bash\npython3 -m venv venv\n. ./venv/bin/activate\npip install -r requirements.txt\n```\n\nThen start the program in `hai.py`.\n```bash\npython3 hai.py\n```\n\n## Settings\n\nYou can configure the program in `hai.py`.\n\n## Key generation\n\nKeys will be automatically generated. You can generate your own keys using\nthe `create_keys.sh` program.\n```bash\nchmod +x create_keys.sh\n./create_keys.sh\n```\n\nThen change the `PRIVATE_KEY` and `PUBLIC_KEY` settings in `settings.py`.\n\n\u003e **Note:**\n\u003e Keys have to be encoded in PEM format and use an elliptic curve.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcasper64%2Fhai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcasper64%2Fhai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcasper64%2Fhai/lists"}