{"id":14065164,"url":"https://github.com/er1c-zh/dotbot-secret","last_synced_at":"2026-02-10T04:40:05.400Z","repository":{"id":162380407,"uuid":"379655899","full_name":"er1c-zh/dotbot-secret","owner":"er1c-zh","description":"Dotbot plugins for decrypt private file.","archived":false,"fork":false,"pushed_at":"2023-07-08T00:30:41.000Z","size":107,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-13T07:08:21.812Z","etag":null,"topics":["dotbot","dotbot-plugin"],"latest_commit_sha":null,"homepage":"","language":"Python","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/er1c-zh.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,"publiccode":null,"codemeta":null}},"created_at":"2021-06-23T15:51:43.000Z","updated_at":"2023-07-08T00:30:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"616fa3f6-28a7-453d-a88b-615e4ffc9f36","html_url":"https://github.com/er1c-zh/dotbot-secret","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/er1c-zh%2Fdotbot-secret","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/er1c-zh%2Fdotbot-secret/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/er1c-zh%2Fdotbot-secret/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/er1c-zh%2Fdotbot-secret/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/er1c-zh","download_url":"https://codeload.github.com/er1c-zh/dotbot-secret/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228046107,"owners_count":17861096,"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":["dotbot","dotbot-plugin"],"created_at":"2024-08-13T07:04:20.566Z","updated_at":"2024-12-04T04:30:49.674Z","avatar_url":"https://github.com/er1c-zh.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# dotbot-secret\n\ndotbot plugins for encrypt/decrypt private file.\n\n# usage\n\n## dotbot config\n\ndotbot-secret will encrypt file in `src_path` and write to `dst_path`.\n\n```yaml\n- decrypt:\n    -\n        src_path: './encrypt'\n        dst_path: './decrypt'\n    - ['src_path', 'dst_path']\n\n- encrypt:\n    -\n        src_path: './decrypt'\n        dst_path: './encrypt'\n    - ['src_path', 'dst_path']\n```\n\n## sample\n\n![dotbot-secret-usage.gif](./doc/dotbot-secret-usage.gif)\n\n## best practice\n\n1. Add dotbot-secret as a submodule in your dotfiles repo and sync it when init dotbot.\n\n   ```shell\n   git submodule add https://github.com/er1c-zh/dotbot-secret.git\n   ```\n\n1. Modify `install` script with `--except encrypt` action.\n\n    ```shell\n   \"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}\" -d \"${BASEDIR}\" -c \"${CONFIG}\" --plugin-dir ./dotbot-secret --except encrypt \"${@}\"\n    ```\n   \n1. Create [another `install` script named `do_encrypt`](https://github.com/er1c-zh/dotfiles/blob/master/do_encrypt) \nwith `--only encrypt` for encrypt only, \nthen use `do_encrypt` to encrypt files.\n   \n   ```shell\n   \"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}\" -d \"${BASEDIR}\" -c \"${CONFIG}\" --plugin-dir ./dotbot-secret --only encrypt \"${@}\"\n   ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fer1c-zh%2Fdotbot-secret","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fer1c-zh%2Fdotbot-secret","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fer1c-zh%2Fdotbot-secret/lists"}