{"id":17862337,"url":"https://github.com/thalesmg/rpw","last_synced_at":"2026-05-19T09:04:39.974Z","repository":{"id":54757090,"uuid":"169071897","full_name":"thalesmg/rpw","owner":"thalesmg","description":"Cache your sudo / become password in your shell","archived":false,"fork":false,"pushed_at":"2021-01-31T18:43:12.000Z","size":124,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-07T05:05:56.493Z","etag":null,"topics":["expect","haskell","password","rpw","shell","sudo"],"latest_commit_sha":null,"homepage":"","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thalesmg.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-04T11:59:11.000Z","updated_at":"2021-01-31T18:42:57.000Z","dependencies_parsed_at":"2022-08-14T01:50:55.836Z","dependency_job_id":null,"html_url":"https://github.com/thalesmg/rpw","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/thalesmg/rpw","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thalesmg%2Frpw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thalesmg%2Frpw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thalesmg%2Frpw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thalesmg%2Frpw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thalesmg","download_url":"https://codeload.github.com/thalesmg/rpw/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thalesmg%2Frpw/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33209432,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-19T07:54:09.561Z","status":"ssl_error","status_checked_at":"2026-05-19T07:54:08.508Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["expect","haskell","password","rpw","shell","sudo"],"created_at":"2024-10-28T08:52:25.357Z","updated_at":"2026-05-19T09:04:39.958Z","avatar_url":"https://github.com/thalesmg.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rpw [![Build Status](https://travis-ci.org/thalesmg/rpw.svg?branch=master)](https://travis-ci.org/thalesmg/rpw)\n\nThis is a Haskell implementation of [`cache-pw`](https://gitlab.com/dgvncsz0f/dot/blob/master/roles/bash/files/bin/cache-pw).\n\n![](./demo.gif)\n\n## How to install\n\nYou need [Stack](https://docs.haskellstack.org/en/stable/README/).\n\n```bash\n$ stack install\n```\n\n## How to use\n\n```bash\n$ rpw bash\n$ sudo echo hello!\n[sudo] password for foobar: (rpw..sudo) \u003c-        # type your password and\n                                                  # end with `Enter`, `C-j` or `C-m`\nhello!\n$ sudo -k\n$ sudo echo hello!\n[sudo] password for foobar: \u003c- (rpw..cached)      # no need to type here!\nhello!\n$ ansible-playbook playbook.yml -K\nSUDO password: \u003c- (rpw..cached)                   # no need to type here!\n _____________________\n\u003c PLAY [Some playbook!] \u003e\n ---------------------\n        \\   ^__^\n         \\  (oo)\\_______\n            (__)\\       )\\/\\\n                ||----w |\n                ||     ||\n\n```\n\n## Testing\n\nYou need `docker` and `docker-compose` for this:\n\n```bash\nmake test\n```\n\n## TODO\n\n- [ ] Allow resetting the password without exiting the shell.\n- [ ] Emit `SIGWINCH` to the slave terminal when needed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthalesmg%2Frpw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthalesmg%2Frpw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthalesmg%2Frpw/lists"}