{"id":28305940,"url":"https://github.com/adrianklessa/aes","last_synced_at":"2025-10-12T01:15:40.868Z","repository":{"id":269172153,"uuid":"906335277","full_name":"AdrianKlessa/aes","owner":"AdrianKlessa","description":"A simple, educational implementation of AES w/ CBC mode of operation","archived":false,"fork":false,"pushed_at":"2025-01-17T15:02:50.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-23T03:44:32.882Z","etag":null,"topics":["aes","aes-encryption","cbc-mode","cryptography","pkcs7","polynomials","toy-project"],"latest_commit_sha":null,"homepage":"","language":"Python","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/AdrianKlessa.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":"2024-12-20T17:05:40.000Z","updated_at":"2025-01-17T15:02:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"aa4c8eba-6b78-4ecc-b8b5-4f7538a5b6f8","html_url":"https://github.com/AdrianKlessa/aes","commit_stats":null,"previous_names":["adrianklessa/aes"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AdrianKlessa/aes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdrianKlessa%2Faes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdrianKlessa%2Faes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdrianKlessa%2Faes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdrianKlessa%2Faes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AdrianKlessa","download_url":"https://codeload.github.com/AdrianKlessa/aes/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdrianKlessa%2Faes/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279009736,"owners_count":26084645,"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","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"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":["aes","aes-encryption","cbc-mode","cryptography","pkcs7","polynomials","toy-project"],"created_at":"2025-05-24T03:13:28.756Z","updated_at":"2025-10-12T01:15:40.863Z","avatar_url":"https://github.com/AdrianKlessa.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"### A simple, naive implementation of AES\n\n![Test workflow](https://github.com/AdrianKlessa/aes/actions/workflows/tests_workflow.yml/badge.svg)\n\nIncludes implementation of:\n* AES-128, AES-192, AES-256\n* CBC mode of operation for encrypting arbitrarily large data\n* PKCS#7 padding for unambiguous message padding to a multiple of block size\n* Unit tests comparing the program's output to official test vectors\n* Helper `encrypt_string`, `decrypt_string` methods for easy encryption of data without converting to bytes\n### Disclaimer:\n\n### This code is not safe for real-world usage\n\n*The implementations are for educational purposes*\n\n*They are slow and surely vulnerable to timing and various other attacks*\n\n\n\n## Resources used:\n\n* [NIST FIPS 197](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.197-upd1.pdf) for implementation details and test vectors for intermediate stages of encryption\n* [NIST SP 800-38a](https://nvlpubs.nist.gov/nistpubs/legacy/sp/nistspecialpublication800-38a.pdf) for test vectors for CBC mode\n* [AES lecture slides](https://tratliff.webspace.wheatoncollege.edu/2016_Fall/math202/inclass/sep21_inclass.pdf) by T. Ratliff at Wheaton College for verifying the multiplicative inverse in GF(2^8)\n* [The Wikipedia article](https://en.wikipedia.org/wiki/Advanced_Encryption_Standard) for a high-level explanation of the algorithm and information about equivalent implementation methods","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadrianklessa%2Faes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadrianklessa%2Faes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadrianklessa%2Faes/lists"}