{"id":16644307,"url":"https://github.com/aaryanporwal/file-encrypter","last_synced_at":"2025-10-30T12:30:32.043Z","repository":{"id":168920542,"uuid":"284275895","full_name":"aaryanporwal/File-Encrypter","owner":"aaryanporwal","description":"Encrypt-Decrypt any file, made without any external library.","archived":false,"fork":false,"pushed_at":"2021-02-06T09:29:31.000Z","size":133,"stargazers_count":5,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-02T08:31:52.448Z","etag":null,"topics":["cryptocode","xor-operation"],"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/aaryanporwal.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":"2020-08-01T14:29:20.000Z","updated_at":"2022-06-12T10:48:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"55de3eff-8347-492a-b958-08fb735412a3","html_url":"https://github.com/aaryanporwal/File-Encrypter","commit_stats":null,"previous_names":["aaryanporwal/file-encrypter"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaryanporwal%2FFile-Encrypter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaryanporwal%2FFile-Encrypter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaryanporwal%2FFile-Encrypter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaryanporwal%2FFile-Encrypter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aaryanporwal","download_url":"https://codeload.github.com/aaryanporwal/File-Encrypter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238961378,"owners_count":19559477,"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":["cryptocode","xor-operation"],"created_at":"2024-10-12T08:10:59.970Z","updated_at":"2025-10-30T12:30:31.670Z","avatar_url":"https://github.com/aaryanporwal.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## File Encryptor 🔐\n\nEncrypt-Decrypt \u003ci\u003e**any file**\u003c/i\u003e, made without any external library.\n\n### Working\n\nThe program takes all the bits of the file in an array, and then applies a XOR operation with a key to encrypt it.\nTo decrypt it, it applies the XOR operation with the same key to get back the file.\n\n\u003cb\u003eExample of XOR operation and how this works\u003c/b\u003e\n\n```python\na = 10 # a represents the bits of the file you wanna encrypt\nkey = 27 # Any positive integer between 0 to 255\na = a ^ key #Applying XOR operation between a and the key, this encrypts the file\nprint(a) #a = 17\na = a ^ key #Applying XOR operation between a and the key again decrypts the file\nprint(a) #a = 10\n```\n\n### How to encrypt🔒?\n1.  Clone the repo in your system, head over to cryptocode.py and replace \"subject.png\" with name of any file you want (keep it in the same folder) in quotes.\n\n2.  Replace \"encrypted_subject.png\" with any name. (This will be your encrypted file)\n\n3.  Now run the code in your IDE or run in terminal/cmd:\n```bash\ncd File-Encrypter\npython3 cryptocode.py\n```\n4. In your file browser you can now see the encrypted file!\n\n### How to decrypt🔓?\n1.  Open the cryptocode.py file and in the first line replace \"subject.png\" with the encrypted file name.\n\n2.  Replace name of your encrypted file in the 7th line to any name. (this will be your decrypted file)\n\n3.  That's it! Just run cryptocode.py and you'll see the decrypted file in your folder! 🥳\n\n\u003e If you haven't guessed till now, DON'T USE THIS FOR ANYTHING SERIOUS, this method is super easy to crack (think of single for loop).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faaryanporwal%2Ffile-encrypter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faaryanporwal%2Ffile-encrypter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faaryanporwal%2Ffile-encrypter/lists"}