{"id":15964101,"url":"https://github.com/ethercap/passwd","last_synced_at":"2026-05-02T19:33:19.718Z","repository":{"id":56979649,"uuid":"177775840","full_name":"ethercap/passwd","owner":"ethercap","description":"基于yii2密码管理账本","archived":false,"fork":false,"pushed_at":"2019-04-04T02:00:42.000Z","size":177,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-11-27T14:57:35.796Z","etag":null,"topics":["password","password-manager","yii2","yii2-extension"],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/ethercap.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-26T11:36:03.000Z","updated_at":"2019-04-04T02:00:43.000Z","dependencies_parsed_at":"2022-08-21T08:00:10.776Z","dependency_job_id":null,"html_url":"https://github.com/ethercap/passwd","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ethercap/passwd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethercap%2Fpasswd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethercap%2Fpasswd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethercap%2Fpasswd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethercap%2Fpasswd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ethercap","download_url":"https://codeload.github.com/ethercap/passwd/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethercap%2Fpasswd/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32547647,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T19:18:06.202Z","status":"ssl_error","status_checked_at":"2026-05-02T19:16:21.335Z","response_time":132,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["password","password-manager","yii2","yii2-extension"],"created_at":"2024-10-07T17:01:14.081Z","updated_at":"2026-05-02T19:33:19.702Z","avatar_url":"https://github.com/ethercap.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# yii2-passwd\n========================\n\n基于yii2框架的密码管理\n\n在正常的创业中，公司中会存在大量的密码需要管理。虽然keepasswd等工具能帮助我们管理密码，但是密码并不是共享的，导致几个核心员工之间需要大量的沟通和交流。本处利用了yii2框架来实现了一个集中式管理的密码账本，方便大家使用。\n主要功能特性：\n\n - 基本的权限控制\n - 数据库采用随机盐方式，保证数据库安全。\n - 加密解密方式均开源且可自行配置，保证安全。\n \n在此处可以查看本扩展的[许可](LICENSE.md)\n\n示例\n-----\n页面上整个密码的列表\n![image](./docs/img/list.png)\n修改或添加密码的示例，支持自动生成随机密码。\n![image](./docs/img/update.png)\n\n\n\n安装\n------------\n\n推荐的方式是通过composer 进行下载安装[composer](http://getcomposer.org/download/)。\n\n在命令行执行\n```\nphp composer.phar require \"ethercap/passwd\" \"~1.0.0\"\n```\n\n或加入\n\n```\n\"ethercap/passwd\": \"~1.0.0\"\n```\n\n到你的`composer.json`文件中的require段。\n\n使用\n-----\n\n**module配置**\n\n一旦你安装了这个插件，你就可以直接在yii2的配置文件中加入如下的代码：\n\n\n```php\nreturn [\n    'modules' =\u003e [\n        'passwd' =\u003e [\n            'class' =\u003e '\\ethercap\\passwd\\Module',\n            //允许查看密码页面的用户id,可以为function\n            'allowUserIds' =\u003e YII_DEBUG ? [1] : [1,2,3],\n            //数据库加密的盐，建议由标点，大小写字母，数字组成\n            'salt' =\u003e '#@!D1s^$\u0026',\n            //使用的数据库\n            'db' =\u003e 'db',\n            //加密方式，可以不配置，使用默认的加密\n            'encodePasswd' =\u003e function($passwd, $key, $salt){\n                return 'xxx';    \n            }\n            //解密方式，可以不配置，使用默认的解密\n            'decodePasswd' =\u003e function($encrypt, $key, $salt) {\n                return 'xxx',\n            }\n         ],\n    ],\n];\n```\n\n注意：\n\n - 为了安全，本插件要求必须配置salt。\n - 各位可以自行配置加解密算法。如果不配置，会使用默认的加解密算法。默认采用的是Yii2自带的encryptByPassword方法，大家可以放心使用。\n\n**数据库配置**\n\n你需要在数据库建立对应的密码表，sql在src/sql/passwd.sql中，可以通过数据库导入，建立相应的数据库表。\n\n**使用**\n\n通过上述的操作，我们就可以使用密码本了。访问http://yourdomain.com/passwd ，我们就可以看到对应的效果了，祝使用愉快。如果有任何功能建议，欢迎联系我们。\n\n\n广告\n--------------\n\n 我们是一群热爱技术，追求卓越的极客，我们乐于做一些对整个社会都有作用的事情，我们希望通过我们的努力来推动整个社会的创新，如果你也一样，欢迎加入我们（service@ethercap.com）！你也可以通过https://tech.ethercap.com 来了解更多！\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fethercap%2Fpasswd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fethercap%2Fpasswd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fethercap%2Fpasswd/lists"}