{"id":18078397,"url":"https://github.com/techgaun/saancho","last_synced_at":"2025-04-05T20:40:44.089Z","repository":{"id":147049062,"uuid":"73895353","full_name":"techgaun/saancho","owner":"techgaun","description":":closed_lock_with_key: :lock: :key: Command Line Password Manager","archived":false,"fork":false,"pushed_at":"2018-10-02T22:41:21.000Z","size":27,"stargazers_count":3,"open_issues_count":3,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-11T21:51:21.420Z","etag":null,"topics":["gpg","password-generator","password-manager"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/techgaun.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":"2016-11-16T07:32:56.000Z","updated_at":"2018-10-02T22:41:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"167a2d9a-4fdf-44df-95e4-dfbf0f864fae","html_url":"https://github.com/techgaun/saancho","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techgaun%2Fsaancho","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techgaun%2Fsaancho/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techgaun%2Fsaancho/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techgaun%2Fsaancho/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/techgaun","download_url":"https://codeload.github.com/techgaun/saancho/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247399898,"owners_count":20932876,"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":["gpg","password-generator","password-manager"],"created_at":"2024-10-31T12:13:52.943Z","updated_at":"2025-04-05T20:40:44.070Z","avatar_url":"https://github.com/techgaun.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# saancho\n\n\u003e Command Line Password Manager\n\nSaancho (Key) is a command line password manager that uses [gnupg](https://www.gnupg.org/) and AES256 symmetric encryption (AES256). All you have to remember is a single passphrase for your _saancho_ store and you are good to go. If you have used LastPass or Keepass, Saancho is similar thing but CLI based, small, simple and does exactly what I needed.\n\nImplementation of Saancho is plain simple. All it does is use a file (defaults to `$HOME/.saancho.gpg` and overridable via `$SAANCHO_FILE` environment variable) to store the appropriate data and use grep and gpg (gpg2 is favored over gpg) commands.\n\n## Installation\n\n- Fire up your terminal and copy and run the following command:\n\n```shell\nsudo wget \"https://raw.githubusercontent.com/nepalihackers/saancho/master/saancho\" -O /usr/bin/saancho \u0026\u0026 sudo chmod +x /usr/bin/saancho\n```\n\n## Usage\n\nAssuming you have done a global install of `saancho`, you can run it as:\n\n```\n$ saancho\nEnter the passphrase for your saancho store:\n\nOptions available\n\n\tc - create new credential\n\tr - read existing credential\n\td - delete credential\n\tb - backup credentials\n\ti - delete credential file(re-initialize)\n  p - change the passphrase for saancho\n\te - exit Saancho\n\nEnter the action you wish to perform:\n```\n\n- The keystore is saved at `$HOME/.saancho.gpg` but if you wish to customize that, you can set `$SAANCHO_FILE` environment variable to whatever path you wish.\n- Saancho can copy password to your clipboard automatically if your search yields single result. This is not enabled by default and can be enabled\nby setting `SAANCHO_CLIPBOARD` env-var to `true`\n\n## Features\n\n- safe storage of password data (make sure to choose good passphrase)\n- create/search/read/delete credentials\n- random password generation\n- copy to clipboard feature for single search results and for randomly generated passwords\n- change the passphrase of the keystore\n\n## Development\n\nThere's a [Dockerfile](Dockerfile) that you can use to locally test saancho during development.\n\n##### Build a docker image\n\n```shell\ndocker build -t nepalihackers/saancho .\n```\n\n##### Run the image\n\n```shell\ndocker run --name s1 -it nepalihackers/saancho saancho\n```\n\n##### Restart if you exit the container\n\n```shell\ndocker start s1\n```\n\n##### Execute saancho again\n\n```shell\ndocker exec -it s1 saancho\n```\n\n## To Do\n\n- ~~Implement random password generation~~\n- Implement backup feature to backup to one of the cloud services (yet to figure out what service)\n- ~~Implement Copy to clipboard option~~\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechgaun%2Fsaancho","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechgaun%2Fsaancho","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechgaun%2Fsaancho/lists"}