{"id":26295580,"url":"https://github.com/inoribea/sdns-calculator","last_synced_at":"2026-03-08T14:31:22.210Z","repository":{"id":282389688,"uuid":"948427433","full_name":"inoribea/sdns-calculator","owner":"inoribea","description":"DNS Stamp calculator component for Python","archived":false,"fork":false,"pushed_at":"2025-03-14T10:37:12.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-14T11:28:49.041Z","etag":null,"topics":["dns","dnscrypt","dnscrypt-proxy","doh","python"],"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/inoribea.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":"2025-03-14T10:15:09.000Z","updated_at":"2025-03-14T10:49:08.000Z","dependencies_parsed_at":"2025-03-14T11:39:20.004Z","dependency_job_id":null,"html_url":"https://github.com/inoribea/sdns-calculator","commit_stats":null,"previous_names":["inoribea/sdns-calculator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inoribea%2Fsdns-calculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inoribea%2Fsdns-calculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inoribea%2Fsdns-calculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inoribea%2Fsdns-calculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inoribea","download_url":"https://codeload.github.com/inoribea/sdns-calculator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243681077,"owners_count":20330155,"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":["dns","dnscrypt","dnscrypt-proxy","doh","python"],"created_at":"2025-03-15T04:14:26.713Z","updated_at":"2026-03-08T14:31:22.203Z","avatar_url":"https://github.com/inoribea.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sdns-calculator\n\nDNS Stamp calculator component for Python. This tool generates DNS Stamps (for DoH/DoT/DoQ) by retrieving server certificates and computing necessary hashes locally.\n\n**Note:** This tool requires an active internet connection to retrieve the server's SSL/TLS certificate, which is essential for generating the DNS Stamp. The calculation of the DNS Stamp itself is performed locally after the certificate is obtained.\n\n- Thanks to jedisct1.\n- Code implementations sourced from [stamps-specifications](https://dnscrypt.info/stamps-specifications/)  \n## Why\nThis project was created to provide a local solution for generating DNS Stamps, particularly when direct certificate and hash computation through tools like dnscrypt-proxy is challenging. It aims to fill the gap for users seeking a straightforward, script-based approach.\n## Use\n1.  Install Python (3.7+)\n2.  Install the `cryptography` Python module: `pip install cryptography`\n3.  Download the script for your language (e.g., `sdns-calculator.py`)\n4.  Run it from your terminal: `python sdns-calculator.py`\n\nAdditionally, you can now select \"Certificate Info\" (option 5) to retrieve detailed server certificate information (Subject, Issuer, Serial Number, Validity, SHA256 Fingerprint, and TBS SHA256 Hash) for DoH/DoT protocols.\n\n**Important Note for Windows Users:**\nIf you encounter an `ImportError: DLL load failed while importing _rust: The specified procedure could not be found.` error when running the script, it is highly likely that your system is missing or has an outdated **Microsoft Visual C++ Redistributable** package. The `cryptography` library, which `sdns-calculator` depends on for secure operations, relies on these runtime components.\nTo resolve this issue:\n1.  **Download and install the latest Microsoft Visual C++ Redistributable**\n    *   You can find the official download here: [Microsoft Visual C++ Redistributable](https://learn.microsoft.com/cpp/windows/latest-supported-vc-redist)\n    *   It's generally recommended to download and install both the `x86` and `x64` versions, even if your Python installation is 64-bit, to ensure full compatibility.\n2.  **Restart your computer** after installation to ensure the changes take effect system-wide.\n3.  (Optional but recommended) If you've already tried to run the script and encountered the error *before* installing the redistributable, it's a good idea to reinstall `cryptography` after installing the redistributable: `pip install --force-reinstall cryptography`\n\nIf you encounter any problems during use, please submit your issues.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finoribea%2Fsdns-calculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finoribea%2Fsdns-calculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finoribea%2Fsdns-calculator/lists"}