{"id":29042445,"url":"https://github.com/alstonchan/birthday-simulation","last_synced_at":"2025-07-07T03:09:28.189Z","repository":{"id":295750329,"uuid":"981925798","full_name":"AlstonChan/birthday-simulation","owner":"AlstonChan","description":"A simple command-line application demonstrating the surprising likelihood of birthday collisions.","archived":false,"fork":false,"pushed_at":"2025-07-05T09:07:27.000Z","size":110,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-05T09:35:53.954Z","etag":null,"topics":["birthday-paradox","c","cmake","ncurses"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AlstonChan.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,"zenodo":null}},"created_at":"2025-05-12T05:44:14.000Z","updated_at":"2025-07-05T09:07:30.000Z","dependencies_parsed_at":"2025-05-27T07:40:35.599Z","dependency_job_id":"23eaa523-5ade-43ca-bf73-7b1ccd61a211","html_url":"https://github.com/AlstonChan/birthday-simulation","commit_stats":null,"previous_names":["alstonchan/birthday-simulation"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AlstonChan/birthday-simulation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlstonChan%2Fbirthday-simulation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlstonChan%2Fbirthday-simulation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlstonChan%2Fbirthday-simulation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlstonChan%2Fbirthday-simulation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlstonChan","download_url":"https://codeload.github.com/AlstonChan/birthday-simulation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlstonChan%2Fbirthday-simulation/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264005221,"owners_count":23542830,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["birthday-paradox","c","cmake","ncurses"],"created_at":"2025-06-26T15:30:53.127Z","updated_at":"2025-07-07T03:09:28.174Z","avatar_url":"https://github.com/AlstonChan.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Birthday Simulation\n\nThis is a CLI application written in C that shows how birthday paradox works, prove how birthday attack can finds collision in less than half of the hash space count.\n\n## Getting Started\n\nTo run, build or develop the application, you should start from here.\n\n### Library Used\n\n- [OpenSSL](https://www.openssl.org/) - For generating cryptographically random bytes for hashing, which also provides the hash function the program needed like `sha256`, `sha512`, etc..\n- [ncurses](https://invisible-island.net/ncurses/) - The core library to build UI in this CLI application\n\n## Prerequisites\n\n- If you are on Windows, you need to install [MSYS2](https://www.msys2.org/). That should also install **UCRT64** for you.\n- Install all library listed in the [Library Used](#library-used) section. In windows, you should use the `UCRT64` terminal and pacman to search and install the library.\n- Install `CMake` and `make`\n\n### Build\n\n1. Clone the repository into your local machine\n\n   ```bash\n   git clone https://github.com/AlstonChan/birthday-simulation.git\n   ```\n\n2. Generate the `make` file with `CMake`, for your platform:\n\n   On Windows, using **MinGW**\n\n   ```powershell\n   cmake . -G \"MinGW Makefiles\"\n   ```\n\n   On Linux/Unix, using the standard unix makefile\n\n   ```bash\n   cmake . -G \"Unix Makefiles\"\n   ```\n\n3. Run `make` to build the application\n\n   ```bash\n   make\n   ```\n\n## Resources\n\n- [Ncurses How to Guide](https://invisible-island.net/ncurses/howto/NCURSES-Programming-HOWTO.html)\n- [Ncurses manual](https://invisible-island.net/ncurses/man/ncurses.3x.html)\n- [Ncurses Menu manual](https://invisible-island.net/ncurses/man/menu.3x.html)\n- [Ncurses Form manual](https://invisible-island.net/ncurses/man/form.3x.html)\n- [The Birthday Paradox by Vsauce2 on Youtube](https://www.youtube.com/watch?v=ofTb57aZHZs)\n- [Check your intuition: The birthday problem - David Knuffke on Youtube](https://www.youtube.com/watch?v=KtT_cgMzHx8)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falstonchan%2Fbirthday-simulation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falstonchan%2Fbirthday-simulation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falstonchan%2Fbirthday-simulation/lists"}