{"id":21903090,"url":"https://github.com/rebornplusplus/aes-128","last_synced_at":"2025-07-24T02:38:28.941Z","repository":{"id":103958114,"uuid":"347825756","full_name":"rebornplusplus/AES-128","owner":"rebornplusplus","description":"Advanced Encryption Standard (Rijndael)","archived":false,"fork":false,"pushed_at":"2021-03-15T03:41:42.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-22T06:29:45.000Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rebornplusplus.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":"2021-03-15T03:34:18.000Z","updated_at":"2021-03-15T03:41:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"8ea8b5f8-5a92-48fb-acb5-2940487ee82e","html_url":"https://github.com/rebornplusplus/AES-128","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rebornplusplus/AES-128","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rebornplusplus%2FAES-128","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rebornplusplus%2FAES-128/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rebornplusplus%2FAES-128/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rebornplusplus%2FAES-128/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rebornplusplus","download_url":"https://codeload.github.com/rebornplusplus/AES-128/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rebornplusplus%2FAES-128/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266785556,"owners_count":23983830,"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-07-24T02:00:09.469Z","response_time":99,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":[],"created_at":"2024-11-28T15:25:35.768Z","updated_at":"2025-07-24T02:38:28.922Z","avatar_url":"https://github.com/rebornplusplus.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Advanced Encryption Standard (Rijndael)\n\n### Usage\n\n```\nAES-128 encryption | Usage:\n\t-k, --key-len      mention the key length in bytes, possible options are 16, 24 or 32.\n\t-m, --mode         mention the procedure, either 'encrypt' or 'decrypt' without quotes.\n\t-f, --file         provide the filename with relative/absolute path to encrypt/decrypt it.\n\t                   not to be used with: -h, --hex, -c, --console.\n\t-c, --console      encrypt/decrypt ASCII plaintext through console.\n\t                   not to be used with: -f, --file.\n\t-h, --hex          when in console mode, output encrypted bytes and input to decrypt bytes in hexadecimal string.\n\t                   to be used with: -c or --console.\n\t                   not to be used with: -f, --file.\n```\n\nFor example, to encrypt a `file.ext` with a 128 bits key, execute\n```\n./aes.py -m encrypt -f file.ext -k 16\n```\nand input the key after the console prompt. `file.ext` will be changed (overwritten, encrypted).\n\nSimilarly to decrypt the encrypted file `file.ext` with the same key, execute\n```\n./aes.py -m decrypt -f file.ext -k 16\n```\nand input the key like before.\n\nYou must make `aes.py` to be executable to execute the previous commands.\n```\nchmod +x aes.py\n```\nIf you don't want to do that however, add `python3` to the prefix of those encryption and decryption commands.\n\n### Caution\n\nDon't pull the following stunt:\n```\n./aes.py -m encrypt -f aes.py\n```\n\nThis script doesn't keep info over which files are encrypted, which are not. So, a single file can very well be encrypted multiple times, with different keys. Make sure to decrypt them in a reverse manner. Also, make sure not to decrypt a non-encrypted file. (The behaviour is untested.)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frebornplusplus%2Faes-128","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frebornplusplus%2Faes-128","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frebornplusplus%2Faes-128/lists"}