{"id":36454311,"url":"https://github.com/jo-makar/matasano","last_synced_at":"2026-01-11T23:01:20.869Z","repository":{"id":176470776,"uuid":"139854173","full_name":"jo-makar/matasano","owner":"jo-makar","description":"Matasano (now NCC Group) crypto challenges' solutions","archived":false,"fork":false,"pushed_at":"2021-02-17T04:05:42.000Z","size":2835,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-20T21:08:43.801Z","etag":null,"topics":["crypto-challenges","cryptopals","matasano"],"latest_commit_sha":null,"homepage":"","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/jo-makar.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":"2018-07-05T13:33:15.000Z","updated_at":"2022-07-20T01:54:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"3074caf3-ac51-4c78-bee8-a211ff75ea1f","html_url":"https://github.com/jo-makar/matasano","commit_stats":null,"previous_names":["jo-makar/matasano"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jo-makar/matasano","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jo-makar%2Fmatasano","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jo-makar%2Fmatasano/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jo-makar%2Fmatasano/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jo-makar%2Fmatasano/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jo-makar","download_url":"https://codeload.github.com/jo-makar/matasano/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jo-makar%2Fmatasano/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28326166,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T22:11:01.104Z","status":"ssl_error","status_checked_at":"2026-01-11T22:10:58.990Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["crypto-challenges","cryptopals","matasano"],"created_at":"2026-01-11T23:01:20.235Z","updated_at":"2026-01-11T23:01:20.864Z","avatar_url":"https://github.com/jo-makar.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# matasano\nMatasano (now NCC Group) crypto challenges' (https://cryptopals.com) solutions\n\nBriefly, these are a collection of exercises that demonstrate attacks on real-world cryptography.\nThe exercises are derived from weaknesses in real-world systems and modern cryptographic\nconstructions covering topics from symmetric ciphers such as AES (in a variety of modes), padding\nschemes such as PKCS#7, random number generators, hashing algorithmns, asymmetric ciphers such as\nDSA and RSA, a variety of famous attacks, and so on.\n\n- Problem set 1\n  - [x] Convert hex to base64 and back\n  - [x] Fixed XOR\n  - [x] Single-character XOR Cipher\n  - [x] Detect single-character XOR\n  - [x] Repeating-key XOR Cipher\n  - [x] Break repeating-key XOR\n  - [x] AES in ECB Mode\n  - [x] Detecting ECB\n- Problem set 2\n  - [x] Implement PKCS#7 padding\n  - [x] Implement CBC Mode\n  - [x] Write an oracle function and use it to detect ECB\n  - [x] Byte-at-a-time ECB decryption, Full control version\n  - [x] ECB cut-and-paste\n  - [x] Byte-at-a-time ECB decryption, Partial control version\n  - [x] PKCS#7 padding validation\n  - [x] CBC bit flipping\n- Problem set 3\n  - [x] The CBC padding oracle\n  - [x] Implement CTR mode\n  - [x] Break fixed-nonce CTR mode using substitions\n  - [x] Break fixed-nonce CTR mode using stream cipher analysis\n  - [x] Implement the MT19937 Mersenne Twister RNG\n  - [x] \"Crack\" an MT19937 seed\n  - [x] Clone an MT19937 RNG from its output\n  - [x] Create the MT19937 stream cipher and break it\n- Problem set 4\n  - [x] Break \"random access read/write\" AES CTR\n  - [x] CTR bit flipping\n  - [x] Recover the key from CBC with IV=Key\n  - [x] Implement a SHA-1 keyed MAC\n  - [x] Break a SHA-1 keyed MAC using length extension\n  - [x] Break an MD4 keyed MAC using length extension\n  - [x] Implement HMAC-SHA1 and break it with an artificial timing leak\n  - [x] Break HMAC-SHA1 with a slightly less artificial timing leak\n- Problem set 5\n  - [x] Implement Diffie-Hellman\n  - [x] Implement a MITM key-fixing attack on Diffie-Hellman with parameter injection\n  - [x] Implement DH with negotiated groups, and break with malicious \"g\" parameters\n  - [x] Implement Secure Remote Password\n  - [x] Break SRP with a zero key\n  - [x] Offline dictionary attack on simplified SRP\n  - [x] Implement RSA\n  - [x] Implement an E=3 RSA Broadcast attack\n- Problem set 6\n  - [x] Implement Unpadded Message Recovery Oracle\n  - [x] Bleichenbacher's e=3 RSA Attack\n  - [x] DSA Key Recovery From Nonce\n  - [x] DSA Nonce Recovery From Repeated Nonce\n  - [x] DSA Parameter Tampering\n  - [x] Decrypt RSA From One-Bit Oracle\n  - [x] Bleichenbacher's PKCS 1.5 Padding Oracle (Simple Case)\n  - [x] Bleichenbacher's PKCS 1.5 Padding Oracle (Complete)\n\n# License\nThis work is released to the public domain.\n\n\u003c!-- vim: set tw=100: --\u003e\n\u003c!-- kak: autowrap_column=100 --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjo-makar%2Fmatasano","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjo-makar%2Fmatasano","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjo-makar%2Fmatasano/lists"}