{"id":21436727,"url":"https://github.com/vincent-g-van/aes-encryption-python","last_synced_at":"2025-10-06T08:32:14.685Z","repository":{"id":46734837,"uuid":"94309654","full_name":"Vincent-G-Van/AES-Encryption-Python","owner":"Vincent-G-Van","description":"Two scripts in Python to encrypt/decrypt using the 128 bits AES algorithm, ECB mode with hex \"00\" as padding for each character. For the encryption, an ascii plaintext file is taken as the input, then an encrypted hex file is outputted. For the decryption, a ciphertext hex file is taken as the input, then a decrypted ascii file is outputted.","archived":false,"fork":false,"pushed_at":"2017-07-22T06:42:11.000Z","size":720,"stargazers_count":26,"open_issues_count":0,"forks_count":21,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-28T03:52:48.875Z","etag":null,"topics":["aes","aes-128","aes-decryption","aes-encryption","aes-encryption-python","bitvector","ciphertext","ecb","ecb-mode","encryption","hex","nist","padding","plaintext","python","python-3-6","textfile"],"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/Vincent-G-Van.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}},"created_at":"2017-06-14T08:45:08.000Z","updated_at":"2025-02-20T04:35:47.000Z","dependencies_parsed_at":"2022-08-25T14:41:51.536Z","dependency_job_id":null,"html_url":"https://github.com/Vincent-G-Van/AES-Encryption-Python","commit_stats":null,"previous_names":["devil-of-silicon-valley/aes-encryption-python","vincent-g-van/aes-encryption-python","homerflander/aes-encryption-python"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Vincent-G-Van/AES-Encryption-Python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vincent-G-Van%2FAES-Encryption-Python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vincent-G-Van%2FAES-Encryption-Python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vincent-G-Van%2FAES-Encryption-Python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vincent-G-Van%2FAES-Encryption-Python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Vincent-G-Van","download_url":"https://codeload.github.com/Vincent-G-Van/AES-Encryption-Python/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vincent-G-Van%2FAES-Encryption-Python/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278579199,"owners_count":26009964,"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-06T02:00:05.630Z","response_time":65,"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-128","aes-decryption","aes-encryption","aes-encryption-python","bitvector","ciphertext","ecb","ecb-mode","encryption","hex","nist","padding","plaintext","python","python-3-6","textfile"],"created_at":"2024-11-23T00:14:13.705Z","updated_at":"2025-10-06T08:32:14.355Z","avatar_url":"https://github.com/Vincent-G-Van.png","language":"Python","readme":"# AES-Encryption-Python (Completed/Working)\n\nCreated by Van. June 2017 \u003c/br\u003e\n\nResource(s) Used: \u003c/br\u003e\n-BitVector class created by Avinash Kak (kak@purdue.edu) at https://engineering.purdue.edu/kak/dist/BitVector-3.4.4.html \u003c/br\u003e\n-Nist Announcement Publication of AES in 2001 at http://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.197.pdf \u003c/br\u003e\n-Used Kavaliro Slides at https://kavaliro.com/wp-content/uploads/2014/03/AES.pdf to check work \u003c/br\u003e\n-Used Online AES Encryption Tools at http://aes.online-domain-tools.com/ and http://extranet.cryptomathic.com/aescalc/index to check work \n\nSummary:\u003c/br\u003e\nTwo scripts in Python to encrypt/decrypt using the 128 bits AES algorithm, ECB mode with hex \"00\" as padding for each character. For the encryption, an ascii plaintext file is taken as the input, then an encrypted hex file is outputted. For the decryption, a ciphertext hex file is taken as the input, then a decrypted ascii file is outputted.\u003c/br\u003e\n\nNotes: \u003c/br\u003e \n-ECB is not considered secure since it has vulnerabilities in encrypting the same plaintext block. Encrypting the same plaintext block will create the same block of ciphertext. Possible future improvement is to use a more psuedo random mode other than ECB.\u003c/br\u003e\n\u003cbr /\u003e\n--------------------Demonstration--------------------\u003cbr /\u003e\nGeneral Overview Process: \u003cbr /\u003e\n![general](/Demo/1.png)\n\u003cbr /\u003e\u003cbr /\u003e\u003cbr /\u003e\nAES Encryption and Decryption Process: \u003cbr /\u003e\n![aesprocess](/Demo/2.png)\n\u003cbr /\u003e\u003cbr /\u003e\u003cbr /\u003e\nplaintext1.txt File Contents: \u003cbr /\u003e\n![plaintext1](/Demo/3.png)\n\u003cbr /\u003e\u003cbr /\u003e\u003cbr /\u003e\nAESencryption Folder Contents: \u003cbr /\u003e\n![aesfolder](/Demo/4.png)\n\u003cbr /\u003e\u003cbr /\u003e\u003cbr /\u003e\nRunning AESencrypt.py Script: \u003cbr /\u003e\n![encrypt.py](/Demo/5.png)\n\u003cbr /\u003e\u003cbr /\u003e\u003cbr /\u003e\nChecking ciphertext.txt File Contents: \u003cbr /\u003e\n![ciphertext](/Demo/6.png)\n\u003cbr /\u003e\u003cbr /\u003e\u003cbr /\u003e\nRunning AESdecrypt.py Script with Wrong Passphrase: \u003cbr /\u003e\n![wrong](/Demo/7.png)\n\u003cbr /\u003e\u003cbr /\u003e\u003cbr /\u003e\nRunning AESdecrypt.py Scipt with Correct Passphrase: \u003cbr /\u003e\n![right](/Demo/8.png)\n\u003cbr /\u003e\u003cbr /\u003e\u003cbr /\u003e\nChecking plaintext1.txt File with plaintext2.txt File: \u003cbr /\u003e\n![lastcheck](/Demo/9.png)\n\u003cbr /\u003e\u003cbr /\u003e\u003cbr /\u003e\nChecking AESencrypt.py Script with Online AES Encrypt Tool: \u003cbr /\u003e\n![lastcheck](/Demo/10.png)\n\u003cbr /\u003e\u003cbr /\u003e\u003cbr /\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvincent-g-van%2Faes-encryption-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvincent-g-van%2Faes-encryption-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvincent-g-van%2Faes-encryption-python/lists"}