{"id":13586781,"url":"https://github.com/r-lib/askpass","last_synced_at":"2025-12-12T01:05:12.530Z","repository":{"id":40453050,"uuid":"157982718","full_name":"r-lib/askpass","owner":"r-lib","description":"Password Entry for R, Git, and SSH","archived":false,"fork":false,"pushed_at":"2024-10-03T18:18:38.000Z","size":1930,"stargazers_count":84,"open_issues_count":4,"forks_count":1,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-31T15:00:37.108Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/r-lib.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS","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":"2018-11-17T12:32:43.000Z","updated_at":"2025-01-08T07:48:39.000Z","dependencies_parsed_at":"2024-02-26T01:48:59.540Z","dependency_job_id":"b7d7f5c6-4fd8-4b0b-93b9-ace25f5b39c7","html_url":"https://github.com/r-lib/askpass","commit_stats":{"total_commits":44,"total_committers":2,"mean_commits":22.0,"dds":"0.022727272727272707","last_synced_commit":"afd9eb82b50d8d0e02bf69be79dc6df54f298cd2"},"previous_names":["jeroen/askpass"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-lib%2Faskpass","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-lib%2Faskpass/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-lib%2Faskpass/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-lib%2Faskpass/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/r-lib","download_url":"https://codeload.github.com/r-lib/askpass/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246785434,"owners_count":20833490,"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":[],"created_at":"2024-08-01T15:05:48.409Z","updated_at":"2025-12-12T01:05:12.485Z","avatar_url":"https://github.com/r-lib.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"# askpass\n\n\u003e Password Entry Utilities for R, Git, and SSH\n\n[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/askpass)](https://cran.r-project.org/package=askpass)\n[![CRAN RStudio mirror downloads](http://cranlogs.r-pkg.org/badges/askpass)](https://cran.r-project.org/package=askpass)\n\nCross-platform utilities for prompting the user for credentials or a \npassphrase, for example to authenticate with a server or read a protected key.\nIncludes native programs for MacOS and Windows, hence no 'tcltk' is required. \nPassword entry can be invoked in two different ways: directly from R via the \naskpass() function, or indirectly as password-entry back-end for 'ssh-agent' \nor 'git-credential' via the SSH_ASKPASS and GIT_ASKPASS environment variables.\nThereby the user can be prompted for credentials or a passphrase if needed \nwhen R calls out to git or ssh.\n\n## Called from R\n\nTo invoke the password prompt manually use:\n\n```r\naskpass::askpass()\n```\n\nThis is used for example to read protected key files:\n\n```r\nlibrary(openssl)\nkey \u003c- rsa_keygen()\nwrite_pem(key, 'testkey.pem', password = 'supersecret')\nread_key('testkey.pem')\n```\n\n## Called from SSH / Git\n\nThe package also configures itself as the password entry back-end for ssh-agent and git-credential.\nThe easiest way to test this is using the credentials package:\n\n```r\nremotes::install_github(\"r-lib/credentials\")\ngit_credential_ask('https://example.com')\n```\n\n## R for MacOS\n\n![askpass-mac](img/askpass-mac.png)\n\n\n## RStudio (server, desktop)\n\n\n![askpass-rs](img/askpass-rs.png)\n\n\n## RGUI / Windows\n\n![askpass-rs](img/askpass-win.png)\n\n\n## Terminal\n\n![askpass-rs](img/askpass-term.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr-lib%2Faskpass","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fr-lib%2Faskpass","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr-lib%2Faskpass/lists"}