{"id":47929306,"url":"https://github.com/tomasbasham/ciphersuites","last_synced_at":"2026-04-04T07:12:08.299Z","repository":{"id":335563807,"uuid":"1136594729","full_name":"tomasbasham/ciphersuites","owner":"tomasbasham","description":"A module providing TLS cipher suite classifications based on current security standards","archived":false,"fork":false,"pushed_at":"2026-02-24T18:19:30.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-02-24T22:50:14.645Z","etag":null,"topics":["golang","security"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":false,"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/tomasbasham.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-18T01:09:05.000Z","updated_at":"2026-02-24T18:19:35.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/tomasbasham/ciphersuites","commit_stats":null,"previous_names":["tomasbasham/ciphersuites"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tomasbasham/ciphersuites","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasbasham%2Fciphersuites","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasbasham%2Fciphersuites/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasbasham%2Fciphersuites/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasbasham%2Fciphersuites/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomasbasham","download_url":"https://codeload.github.com/tomasbasham/ciphersuites/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasbasham%2Fciphersuites/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31390945,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T04:26:24.776Z","status":"ssl_error","status_checked_at":"2026-04-04T04:23:34.147Z","response_time":60,"last_error":"SSL_read: 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":["golang","security"],"created_at":"2026-04-04T07:12:07.390Z","updated_at":"2026-04-04T07:12:08.288Z","avatar_url":"https://github.com/tomasbasham.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ciphersuites [![test](https://github.com/tomasbasham/ciphersuites/actions/workflows/test.yaml/badge.svg?event=push)](https://github.com/tomasbasham/ciphersuites/actions/workflows/test.yaml)\n\nA Go module providing TLS cipher suite classifications based on current security\nstandards. It categorises cipher suites into four security levels - recommended,\nsecure, weak, and insecure - enabling you to make informed decisions about TLS\nconfiguration and security policy enforcement.\n\nThe classification data is generated from the official IANA TLS parameters\nregistry, ensuring up-to-date cipher suite information across TLS 1.0 through\n1.3.\n\n## Prerequisites\n\nYou will need the following things properly installed on your computer:\n\n- [Go](https://golang.org/): any one of the **three latest major**\n  [releases](https://golang.org/doc/devel/release.html)\n\n## Installation\n\nWith [Go module](https://go.dev/wiki/Modules) support (Go 1.11+), simply add the\nfollowing import\n\n```go\nimport \"github.com/tomasbasham/ciphersuites\"\n```\n\nto your code, and then `go [build|run|test]` will automatically fetch the\nnecessary dependencies.\n\nOtherwise, to install the `ciphersuites` package, run the following command:\n\n```bash\ngo get -u github.com/tomasbasham/ciphersuites\n```\n\n## Usage\n\nTo use this module, import it into your Go application and query cipher suite\ninformation using either the classification maps or helper functions.\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n\n    \"github.com/tomasbasham/ciphersuites\"\n)\n\nfunc main() {\n    classification := ciphersuites.GetClassification(\"TLS_AES_256_GCM_SHA384\")\n    fmt.Printf(\"Classification: %s\\n\", classification)\n\n    // Retrieve full cipher suite details.\n    cs, found := ciphersuites.GetCipherSuite(\"TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256\")\n    if !found {\n        fmt.Println(\"Cipher suite not found\")\n        return\n    }\n\n    fmt.Printf(\"Protocol: %s\\n\", cs.ProtocolVersion)\n    fmt.Printf(\"Encryption: %s\\n\", cs.EncryptionAlgorithm)\n    fmt.Printf(\"Hash: %s\\n\", cs.HashAlgorithm)\n    fmt.Printf(\"Classification: %s\\n\", cs.Classification)\n    fmt.Printf(\"TLS Versions: %v\\n\", cs.TLSVersions)\n\n    if cs.IsRecommended() {\n        fmt.Println(\"This cipher suite is recommended\")\n    }\n}\n```\n\n### Print Recommended Cipher Suites\n\nTo list all recommended cipher suites along with their encryption algorithms:\n\n```go\nfor name, cs := range ciphersuites.RecommendedCipherSuites {\n    fmt.Printf(\"%s: %s\\n\", name, cs.EncryptionAlgorithm)\n}\n```\n\n## Security Classifications\n\nThe module categorises cipher suites into four levels:\n\n- **Recommended:** Cipher suites that are both secure and recommended for\n  current use\n- **Secure:** Cipher suites that are secure but may not be the preferred choice\n- **Weak:** Cipher suites with known weaknesses that should be avoided\n- **Insecure:** Cipher suites that are cryptographically broken and must not be\n  used\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomasbasham%2Fciphersuites","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomasbasham%2Fciphersuites","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomasbasham%2Fciphersuites/lists"}