{"id":24180384,"url":"https://github.com/erhant/cryptopals-go","last_synced_at":"2026-06-07T03:32:53.137Z","repository":{"id":174949265,"uuid":"653037523","full_name":"erhant/cryptopals-go","owner":"erhant","description":"Cryptopals cryptography challenges in Go.","archived":false,"fork":false,"pushed_at":"2023-08-13T21:33:52.000Z","size":1036,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-02T11:55:49.332Z","etag":null,"topics":["cryptography","cryptopals","ctf","go"],"latest_commit_sha":null,"homepage":"https://cryptopals.com/","language":"Go","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/erhant.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}},"created_at":"2023-06-13T09:36:58.000Z","updated_at":"2025-07-06T13:05:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"40be3d29-8b93-4ff6-b4fe-5c6866e1df61","html_url":"https://github.com/erhant/cryptopals-go","commit_stats":null,"previous_names":["erhant/zk-crypto-ctfs","erhant/cryptopals","erhant/cryptopals-go"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/erhant/cryptopals-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erhant%2Fcryptopals-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erhant%2Fcryptopals-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erhant%2Fcryptopals-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erhant%2Fcryptopals-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erhant","download_url":"https://codeload.github.com/erhant/cryptopals-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erhant%2Fcryptopals-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34006637,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-07T02:00:07.652Z","response_time":124,"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","cryptopals","ctf","go"],"created_at":"2025-01-13T06:43:15.422Z","updated_at":"2026-06-07T03:32:53.122Z","avatar_url":"https://github.com/erhant.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cryptopals\n\nThis repository has my [cryptopals](https://cryptopals.com/) solutions, which are a set of cryptography-related programming challenges. Each challenge is run as a test, stored under `sets/setN/chalM_test.go` for some set `N` and challenge `M`. The rest of the codes are stored under `pkg` and `internal`.\n\nTo run a specific set:\n\n```sh\n# N for set number\ngo test ./sets/setN\n\n# e.g. running set 1 with verbose flag\ngo test ./sets/set1 -v\n```\n\nTo run a specific challenge, similarly:\n\n```sh\ngo test ./sets/setN/chalM_test.go -v\n```\n\n## TODO\n\n- Add `internal/testing` utilities that prints expected / received kind of errors.\n\n## Challenges\n\n- [x] [Set 1](./sets/set1/): [Basics](https://cryptopals.com/sets/1)\n  - [x] [Challenge 1](./sets/set1/chal1_test.go): [Convert `hex` to `base64`](https://cryptopals.com/sets/1/challenges/1)\n  - [x] [Challenge 2](./sets/set1/chal2_test.go): [Fixed XOR](https://cryptopals.com/sets/1/challenges/2)\n  - [x] [Challenge 3](./sets/set1/chal3_test.go): [Single-byte XOR cipher](https://cryptopals.com/sets/1/challenges/3)\n  - [x] [Challenge 4](./sets/set1/chal4_test.go): [Detect single-character XOR cipher](https://cryptopals.com/sets/1/challenges/4)\n  - [x] [Challenge 5](./sets/set1/chal5_test.go): [Implement repeating-key XOR](https://cryptopals.com/sets/1/challenges/5)\n  - [x] [Challenge 6](./sets/set1/chal6_test.go): [Break repeating-key XOR](https://cryptopals.com/sets/1/challenges/6) there is a bug here?\n  - [x] [Challenge 7](./sets/set1/chal7_test.go): [AES in ECB mode](https://cryptopals.com/sets/1/challenges/7)\n  - [x] [Challenge 8](./sets/set1/chal8_test.go): [Detect AES in ECB mode](https://cryptopals.com/sets/1/challenges/8)\n- [ ] [Set 2](./sets/set2/): [Block crypto](https://cryptopals.com/sets/2)\n  - [x] [Challenge 9](./sets/set2/chal9_test.go): [Implement PKCS#7 padding](https://cryptopals.com/sets/2/challenges/9)\n  - [x] [Challenge 10](./sets/set2/chal10_test.go): [Implement CBC mode](https://cryptopals.com/sets/2/challenges/10)\n  - [ ] [Challenge 11](./sets/set2/chal11_test.go): [An ECB/CBC detection oracle](https://cryptopals.com/sets/2/challenges/11)\n  - ...\n  - [x] [Challenge 15](./sets/set2/chal15_test.go): [PKCS#7 padding validation](https://cryptopals.com/sets/2/challenges/15)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferhant%2Fcryptopals-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferhant%2Fcryptopals-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferhant%2Fcryptopals-go/lists"}