{"id":22433654,"url":"https://github.com/gavinning/wellkey","last_synced_at":"2025-06-19T20:37:07.163Z","repository":{"id":57151628,"uuid":"89234138","full_name":"gavinning/wellkey","owner":"gavinning","description":"短期授权数字签名","archived":false,"fork":false,"pushed_at":"2017-04-25T08:20:52.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-05T17:17:12.921Z","etag":null,"topics":["key"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/gavinning.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}},"created_at":"2017-04-24T11:49:50.000Z","updated_at":"2020-12-22T22:10:55.000Z","dependencies_parsed_at":"2022-09-06T08:00:26.323Z","dependency_job_id":null,"html_url":"https://github.com/gavinning/wellkey","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gavinning/wellkey","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gavinning%2Fwellkey","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gavinning%2Fwellkey/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gavinning%2Fwellkey/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gavinning%2Fwellkey/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gavinning","download_url":"https://codeload.github.com/gavinning/wellkey/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gavinning%2Fwellkey/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260826850,"owners_count":23068858,"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":["key"],"created_at":"2024-12-05T22:15:35.655Z","updated_at":"2025-06-19T20:37:02.150Z","avatar_url":"https://github.com/gavinning.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Wellkey\n---\n短期授权数字签名\n\n### Usage\n```js\nconst Wellkey = require('wellkey')\nconst key = new Wellkey({\n    // 签名有效期，单位秒\n    timeout: 60,\n    // 基础加密字符串与服务器相对应\n    AccessKey: 'ff6ef26f-fe30-4f1c-b04c-3adec850a980'\n})\n\nlet acckey = key.create({\n    AccessKeyID: 'lincodong',\n    AccessKeySecret: '123456'\n})\nlet keymap = key.server({\n    AccessKeyID: 'lincodong',\n    AccessKeySecret: '123456'\n})\n\nconsole.log('签名：', acckey)\nconsole.log('服务器认证：', keymap.includes(acckey))\n```\n\n```sh\nnpm test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgavinning%2Fwellkey","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgavinning%2Fwellkey","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgavinning%2Fwellkey/lists"}