{"id":18566973,"url":"https://github.com/zocker1999net/script-encrypt","last_synced_at":"2025-10-26T01:32:15.482Z","repository":{"id":134002220,"uuid":"261288850","full_name":"Zocker1999NET/script-encrypt","owner":"Zocker1999NET","description":"Tool to create a script which decrypts itself during runtime","archived":false,"fork":false,"pushed_at":"2020-05-04T21:18:43.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-26T01:31:59.212Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/Zocker1999NET.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":"2020-05-04T20:29:48.000Z","updated_at":"2020-08-27T17:30:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"5261a1df-deb1-4f06-b51a-519135446633","html_url":"https://github.com/Zocker1999NET/script-encrypt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Zocker1999NET/script-encrypt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zocker1999NET%2Fscript-encrypt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zocker1999NET%2Fscript-encrypt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zocker1999NET%2Fscript-encrypt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zocker1999NET%2Fscript-encrypt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Zocker1999NET","download_url":"https://codeload.github.com/Zocker1999NET/script-encrypt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zocker1999NET%2Fscript-encrypt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281047793,"owners_count":26435124,"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-25T02:00:06.499Z","response_time":81,"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":[],"created_at":"2024-11-06T22:24:57.335Z","updated_at":"2025-10-26T01:32:15.449Z","avatar_url":"https://github.com/Zocker1999NET.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Script-Encrypt\n\nThis is a tool which allows you to hide the bad script code you write.\nAlso you can use this tool to secure any executable file.\nFor this it uses gpg2.\n\nThis tool was designed to encrypt script code,\nbut it should work with any other binary file which can be executed,\nlike text files with a shebang (shell, Python, …) or binary executables.\n\n## Use Case\n\n- You are not able to write good shell scripts,\n  even after several video tutorials\n- You want to build a binary but you only know how to write shell scripts\n\n## Usage\n\n```\n./script-encrypt.sh \u003ckey\u003e \u003cin\u003e \u003cout\u003e\n```\n\n- The script will be encrypted for **key**.\n  You can use a mail address, a name or a part of the fingerprint.\n  As long as `gpg --list-keys \u003ckey\u003e` does list exactly the one key you want,\n  it is good enough for this tool.\n- **in** and **out** are the input and output files respectively.\n  You can omit these or use `-` to refer to stdin / stdout.\n\n### Example\n\n0. Ensure you have stored your key or the key of a person you want to suprise with your \"coding skills\" in your gpg key database.\n1. Create a script without making effort creating readable or maintenable code.\n   Otherwise there should be no reason to use this tool.\n   This example assumes you called the file `my-shitty-code.sh`\n2. Download this tool and make it executable.\n3. Call the script and let it hide your shameful code:\n   `./script-encrypt.sh 12345678 my-shitty-code.sh binary-file`\n4. Remove your old shitty code `rm my-shitty-code.sh` and be happy executing your `binary-file`.\n   Please remember that you may need to unlock your gpg key while executing the `binary-file`.\n\n## How it works\n\nThis tool encrypts the original code and embeds the armor version of the encrypted blob into shell script,\nwhich is capable of decrypting the blob and executing it right away.\nThe decrypted version, which will be executed, will be stored in a temp file,\nwhich can only be read by the current user.\nThe decrypted version will be removed after its execution\neven if the execution failed.\n\nBecause gpg just ignores the header and footer of the generated script,\nyou can extract the code written by calling `gpg -d \u003c binary-file`\nif you want to see your shitty code again.\n\n## License\n\nThis project is licensed under MIT.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzocker1999net%2Fscript-encrypt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzocker1999net%2Fscript-encrypt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzocker1999net%2Fscript-encrypt/lists"}