{"id":19721067,"url":"https://github.com/paramsiddharth/protate","last_synced_at":"2026-06-07T22:33:54.642Z","repository":{"id":109335190,"uuid":"265785463","full_name":"paramsiddharth/protate","owner":"paramsiddharth","description":"A command-line utility that rotates each character in an ASCII text file by a certain order.","archived":false,"fork":false,"pushed_at":"2020-05-21T08:35:26.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-15T02:58:18.613Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","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/paramsiddharth.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}},"created_at":"2020-05-21T07:37:04.000Z","updated_at":"2020-05-21T08:35:29.000Z","dependencies_parsed_at":"2023-03-13T06:15:37.200Z","dependency_job_id":null,"html_url":"https://github.com/paramsiddharth/protate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/paramsiddharth/protate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paramsiddharth%2Fprotate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paramsiddharth%2Fprotate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paramsiddharth%2Fprotate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paramsiddharth%2Fprotate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paramsiddharth","download_url":"https://codeload.github.com/paramsiddharth/protate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paramsiddharth%2Fprotate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34041087,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-07T02:00:07.652Z","response_time":124,"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-11T23:13:16.428Z","updated_at":"2026-06-07T22:33:54.622Z","avatar_url":"https://github.com/paramsiddharth.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PROTATE\n\nA command-line utility that rotates each character in an ASCII text file by a certain order. \nThe rotation mechanism is similar to [ROT13](https://en.wikipedia.org/wiki/ROT13). Here, each ASCII character is rotated by its ASCII value.  \nRead the [documentation](http://paramsiddharth.github.io/protate).\n\n# Usage\n\n```protate FILE_IN N [-o] [FILE_OUT] [-p] [--h, --help, /?]```\n\nParameters:\n- ```FILE_IN```\n    : The input file.\n- ```N```\n    : The number of ASCII character rotations to do in each character. A negative value would indicate negative rotation.\n- ```-o FILE_OUT```\n    : Would output the result generated from ```FILE_IN``` to ```FILE_OUT```. If omitted, the output would be written to ```./a.out```.\n- ```-p```\n    : Previews the output instead of saving it to a file.\n- ```--h, --help, /?```\n    : Show usage help.\n\n# Building\n\nTo build it using ```gcc``` or ```clang```, compile it via the command-line using ```make```.  \n```\u003e make protate```\n\n# Examples\n\nThe sample file story.txt contains the following text:  \n```The rose is red.\r\nA girl is playing there.\r\nThere is a playground.\r\nAn aeroplane is in the sky.\r\nNumbers are not allowed in the password.\n```\n\n- ```\u003e protate 30 story.txt -o hiph0p```   \n  Generates text by rotating each character by order +30 and writes the output to ```./hiph0p```.\n- ```\u003e protate hiph0p -30 -p```  \n  Decrypts the contents of ```./hiph0p``` by rotating it by order -30 and displays it instead of storing it due to the ```-p``` flag. If everything goes well, the output will be same as the original ```story.txt``` file.\n- ```\u003e protate hiph0p -30```  \n  Decrypts the contents of ```./hiph0p``` by rotating it by order -30, and, since no output file is specified, writes the output to ```./a.out```. If everything goes well, the output will be same as the original ```story.txt``` file.\n\n\u003cp style='text-align: center;'\u003e\n    Made with \u0026#9825; by \u003ca href='http://www.paramsid.com'\u003eParam\u003c/a\u003e.\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparamsiddharth%2Fprotate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparamsiddharth%2Fprotate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparamsiddharth%2Fprotate/lists"}