{"id":30662550,"url":"https://github.com/e9cipher/g-encryptor","last_synced_at":"2025-08-31T16:07:21.785Z","repository":{"id":310829194,"uuid":"1041391254","full_name":"E9cipher/g-encryptor","owner":"E9cipher","description":"Python cryptography tool to encrypt/decrypt files in a specified directory","archived":false,"fork":false,"pushed_at":"2025-08-20T12:21:16.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-20T14:30:55.120Z","etag":null,"topics":["cryptography","cryptography-tools","python3","shell"],"latest_commit_sha":null,"homepage":"","language":null,"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/E9cipher.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,"zenodo":null}},"created_at":"2025-08-20T12:20:30.000Z","updated_at":"2025-08-20T12:23:06.000Z","dependencies_parsed_at":"2025-08-20T14:41:48.144Z","dependency_job_id":null,"html_url":"https://github.com/E9cipher/g-encryptor","commit_stats":null,"previous_names":["e9cipher/g-encryptor"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/E9cipher/g-encryptor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/E9cipher%2Fg-encryptor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/E9cipher%2Fg-encryptor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/E9cipher%2Fg-encryptor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/E9cipher%2Fg-encryptor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/E9cipher","download_url":"https://codeload.github.com/E9cipher/g-encryptor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/E9cipher%2Fg-encryptor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273003591,"owners_count":25029086,"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-08-31T02:00:09.071Z","response_time":79,"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":["cryptography","cryptography-tools","python3","shell"],"created_at":"2025-08-31T16:07:20.505Z","updated_at":"2025-08-31T16:07:21.773Z","avatar_url":"https://github.com/E9cipher.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# G-encryptor\n## Overview\nThis project coded in python allows the user to encrypt/decrypt files in a specified directory.\n## Modes\nThere are two modes, the user-friendly and the machine-friendly.\n### User-friendly\nDisplays the menu, logo and options for user to select. Outputs every change it makes, including deletions, encryptions and decryptions\n```bash\n./g-encryptor.sh\n```\nand this will display the menu with its options\n\n\u003cimg src=\"images/screenshot-1.png\" alt=\"Menu\" width=\"60%\"/\u003e\n\n### Machine-friendly\nThis is a mode which a script can call the file, pass an argument (encrypt/decrypt) and the script will do the thing\n```bash\n./g-encryptor.sh encrypt\n./g-encryptor.sh decrypt\n```\nthat will encrypt/decrypt the specified directory (`TARGET_DIR`)\n## Usage\nIf you are in user mode, run just `./g-encryptor.sh`. If it is running on machine mode, run `./g-encryptor \u003cencrypt|decrypt\u003e`. Make sure that the configuration file (`config.ini`) has the `target_dir` variable set and **does not finish with a final /**. This is important as the script won't be able to handle paths with an ending slash. I've added filters to strip the slash when the `target_dir` changes.\n## Options\n1. **Install packages**: This allows to install the requried packages for the script to run properly. You should run it at least once. In the `bin` branch the files have been compiled to binary to prevent this.\n2. **Encrypt**: This encrypts all files in the `target_dir` directory recursively except the ones with the `GNOENCRYPT` flag (see GNOENCRYPT flag below).\n3. **Decrypt**: This decrypts all files in the `target_dir` directory recursively except the ones with the `GNOENCRYPT` flag.\n4. **Change config directory path**: This allows to change the `target_dir` variable by directly writing to `$CONFIG_FILE` (defined in line 5 of `g-encryptor.sh`), normally `config/config.ini`.\n5. **Exit**: Exits the script.\n## GNOENCRYPT flag\nThe text \"GNOENCRYPT\" has been introduced in all files required by this program. This prevents `encrypt.py` or `decrypt.py` to touch or corrupt the files.\n## Other requirements\nFile `server.php` must be avaliable in `$seed_url` (defined in `encrypt.py` line 13) for the decryption of the files. The current url is `localhost:80/banana/index.php` and the `hash_pass` with the `now` flag ending must be passed through for the proper decryption. Else, `decrypt.py` will crash.\n\nI'll finish README.md soon\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fe9cipher%2Fg-encryptor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fe9cipher%2Fg-encryptor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fe9cipher%2Fg-encryptor/lists"}