{"id":23636927,"url":"https://github.com/serviejs/keysign","last_synced_at":"2025-07-19T10:36:27.386Z","repository":{"id":66113017,"uuid":"136729456","full_name":"serviejs/keysign","owner":"serviejs","description":"Data signing and verification for rotating credentials and algorithms","archived":false,"fork":false,"pushed_at":"2023-12-12T06:59:07.000Z","size":59,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-03T05:04:22.667Z","etag":null,"topics":["cryptography","data-integrity","hmac","hmac-sha256","sign"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/serviejs.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":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-06-09T14:17:23.000Z","updated_at":"2023-12-12T06:59:11.000Z","dependencies_parsed_at":"2025-07-03T05:04:24.126Z","dependency_job_id":"771040e8-aa48-43eb-9718-a24b8d0a34f7","html_url":"https://github.com/serviejs/keysign","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"b6e264f49e3d4412d135f97e23fa154bfcf49d37"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/serviejs/keysign","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serviejs%2Fkeysign","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serviejs%2Fkeysign/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serviejs%2Fkeysign/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serviejs%2Fkeysign/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/serviejs","download_url":"https://codeload.github.com/serviejs/keysign/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serviejs%2Fkeysign/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265918199,"owners_count":23849102,"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":["cryptography","data-integrity","hmac","hmac-sha256","sign"],"created_at":"2024-12-28T06:15:27.999Z","updated_at":"2025-07-19T10:36:27.339Z","avatar_url":"https://github.com/serviejs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Keysign\n\n[![NPM version](https://img.shields.io/npm/v/keysign.svg?style=flat)](https://npmjs.org/package/keysign)\n[![NPM downloads](https://img.shields.io/npm/dm/keysign.svg?style=flat)](https://npmjs.org/package/keysign)\n[![Build status](https://img.shields.io/travis/serviejs/keysign.svg?style=flat)](https://travis-ci.org/serviejs/keysign)\n[![Test coverage](https://img.shields.io/coveralls/serviejs/keysign.svg?style=flat)](https://coveralls.io/r/serviejs/keysign?branch=master)\n\n\u003e Data signing and verification for rotating credentials and algorithms.\n\n_(Inspired by [keygrip](https://github.com/crypto-utils/keygrip) and API compatible with [keycrypt](https://github.com/serviejs/keycrypt))._\n\n## Installation\n\n```\nnpm install keysign --save\n```\n\n## Usage\n\nSigns a `Buffer` using the first `key` (secret) and returns the data. Upon decoding, checks each secret for a valid HMAC and returns the plain data (or `undefined` if nothing matches).\n\n```ts\nimport { Keysign } from 'keysign'\n\nconst secrets = [Buffer.from('secret', 'utf8')]\nconst keysign = new Keysign(secrets)\n\nconst raw = Buffer.from('some data', 'utf8')\nconst signed = keysign.encode(raw)\nconst verified = keysign.decode(encrypted)\n\nassert.equal(verified, raw)\n```\n\n## TypeScript\n\nThis project is using [TypeScript](https://github.com/Microsoft/TypeScript) and publishes the definitions to NPM.\n\n## License\n\nApache 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserviejs%2Fkeysign","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fserviejs%2Fkeysign","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserviejs%2Fkeysign/lists"}