{"id":15068156,"url":"https://github.com/xloge/aes","last_synced_at":"2025-07-20T01:31:57.500Z","repository":{"id":151095999,"uuid":"619559358","full_name":"xLoge/AES","owner":"xLoge","description":"Lightweight, portable, AES for C++11 and above.","archived":false,"fork":false,"pushed_at":"2024-11-03T00:50:13.000Z","size":131,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-20T10:49:24.652Z","etag":null,"topics":["aes","aes-decryption","aes-encryption","cypher","decryption","encryption","lightweight"],"latest_commit_sha":null,"homepage":"","language":"C++","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/xLoge.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":"2023-03-27T11:35:46.000Z","updated_at":"2024-11-03T00:50:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"6c30723e-091d-4046-8245-725aacdf3add","html_url":"https://github.com/xLoge/AES","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xLoge/AES","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xLoge%2FAES","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xLoge%2FAES/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xLoge%2FAES/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xLoge%2FAES/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xLoge","download_url":"https://codeload.github.com/xLoge/AES/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xLoge%2FAES/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266053825,"owners_count":23869496,"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":["aes","aes-decryption","aes-encryption","cypher","decryption","encryption","lightweight"],"created_at":"2024-09-25T01:31:42.145Z","updated_at":"2025-07-20T01:31:57.480Z","avatar_url":"https://github.com/xLoge.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AES\n \n* I made this class to learn how AES works\n* The class should have no errors, but if you find one please [open a issue](../../issues/new/choose) :smile:\n* Lightweight\n* **C++11**\n\n# Usage Example\n\n```C++\nint main()\n{\n    uint8_t data[16] = { 0x6B, 0xC1, 0xBE, 0xE2, 0x2E, 0x40, 0x9F, 0x96, 0xE9, 0x3D, 0x7E, 0x11, 0x73, 0x93, 0x17, 0x2A };\n    uint8_t key[16] = { 0x2B, 0x7E, 0x15, 0x16, 0x28, 0xAE, 0xD2, 0xA6, 0xAB, 0xF7, 0x15, 0x88, 0x09, 0xCF, 0x4F, 0x3C };\n    uint8_t iv[16] = { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F };\n\n    AES::AES128 aes;\n    aes.encrypt_cbc(data, 16, key, iv);\n}\n```\n\n**Output: {** ```76 49 AB AC 81 19 B2 46  CE E9 8E 9B 12 E9 19 7D``` **}**\n\n# Size\nSize with the [Usage](../../../AES#usage) example.\n\n```\n$ g++ -std=c++11 -Os -o AES main.cpp\n$ size AES.o        \n   text    data     bss     dec     hex   filename\n   2069     616       8    2693     a85   AES\n```\n\n# Speed\nTested on Intel i5 12400F | AES128 | C++23 | 512MB | CBC-Mode:\n```\n$ g++  (12.2) -Ofast | around 220MBs\n$ MSVC (2022) /O2    | around 172MBs\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxloge%2Faes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxloge%2Faes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxloge%2Faes/lists"}