{"id":13801387,"url":"https://github.com/piaca/micropython-aes","last_synced_at":"2026-01-18T14:27:53.442Z","repository":{"id":90577265,"uuid":"96406670","full_name":"piaca/micropython-aes","owner":"piaca","description":null,"archived":false,"fork":false,"pushed_at":"2017-07-06T08:26:19.000Z","size":6,"stargazers_count":17,"open_issues_count":1,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-22T12:33:05.502Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/piaca.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":"2017-07-06T08:25:32.000Z","updated_at":"2024-08-04T00:06:12.034Z","dependencies_parsed_at":"2023-03-03T09:00:26.563Z","dependency_job_id":null,"html_url":"https://github.com/piaca/micropython-aes","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piaca%2Fmicropython-aes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piaca%2Fmicropython-aes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piaca%2Fmicropython-aes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piaca%2Fmicropython-aes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/piaca","download_url":"https://codeload.github.com/piaca/micropython-aes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253932809,"owners_count":21986449,"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":[],"created_at":"2024-08-04T00:01:22.287Z","updated_at":"2026-01-18T14:27:53.387Z","avatar_url":"https://github.com/piaca.png","language":"Python","readme":"# micropython-aes\n\nAES algorithm with pure python implementation. Small modify based on https://github.com/ipfans/pyAES for MicroPython.\n\n# How to use?\n\n### In REPL\n\n```\n\u003e\u003e\u003e import maes\n\u003e\u003e\u003e import ubinascii\n\u003e\u003e\u003e \n\u003e\u003e\u003e def array_tostring(array_data):\n...     _string = \"\"\n...     for _array in array_data:\n...         _string = _string + chr(_array)\n...     return _string\n...     \n\u003e\u003e\u003e \n\u003e\u003e\u003e key = b\"1234567890abcdef\"\n\u003e\u003e\u003e iv = b\"1234567890abcdef\"\n\u003e\u003e\u003e \n\u003e\u003e\u003e cryptor = maes.new(key, maes.MODE_CBC, IV=iv)\n\u003e\u003e\u003e ciphertext = cryptor.encrypt(b'This is a test! What could possibly go wrong?___')\n\u003e\u003e\u003e print(ubinascii.b2a_base64(array_tostring(ciphertext)))\nb'wo3DsMKeDTd0DXcUw4wlwq0zwrMmL8O6SxdyNsOFIcKmXk/Dty0PInYswrzCssOGwpkWATlzw54Bw6XChXXDm2ca\\n'\n\u003e\u003e\u003e \n\u003e\u003e\u003e decryptor = maes.new(key, maes.MODE_CBC, IV=iv)\n\u003e\u003e\u003e print(array_tostring(decryptor.decrypt(ciphertext)))\nThis is a test! What could possibly go wrong?___\n\u003e\u003e\u003e \n```\n\n### In nodemcu with micropython\n\n1. Fetch source code `https://github.com/micropython/micropython`\n2. put `maes.py` to directory `$MICROPYTHON_DIR/esp8266/modules`\n3. build firmware and flash into nodemcu\n\n### Why?\n\nCause MicroPython don't support AES algorithm.\n\n","funding_links":[],"categories":["Libraries"],"sub_categories":["Communications"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiaca%2Fmicropython-aes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpiaca%2Fmicropython-aes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiaca%2Fmicropython-aes/lists"}