{"id":20181758,"url":"https://github.com/nichoth/ssc-keys","last_synced_at":"2025-04-10T05:10:22.801Z","repository":{"id":65522626,"uuid":"479564456","full_name":"nichoth/ssc-keys","owner":"nichoth","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-15T22:08:12.000Z","size":801,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-24T06:22:15.399Z","etag":null,"topics":[],"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/nichoth.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":"2022-04-08T23:17:44.000Z","updated_at":"2025-02-15T22:08:09.000Z","dependencies_parsed_at":"2024-11-14T07:03:41.428Z","dependency_job_id":null,"html_url":"https://github.com/nichoth/ssc-keys","commit_stats":{"total_commits":19,"total_committers":1,"mean_commits":19.0,"dds":0.0,"last_synced_commit":"79ac0c94656bcd934233f3e963873c855713b6b7"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nichoth%2Fssc-keys","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nichoth%2Fssc-keys/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nichoth%2Fssc-keys/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nichoth%2Fssc-keys/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nichoth","download_url":"https://codeload.github.com/nichoth/ssc-keys/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247926499,"owners_count":21019501,"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":[],"created_at":"2024-11-14T02:36:39.459Z","updated_at":"2025-04-10T05:10:22.780Z","avatar_url":"https://github.com/nichoth.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ssc keys\n\nKey operations for web browsers.\n\nThis uses the [one-webcrypto](https://github.com/fission-suite/one-webcrypto) API, so the [WebCrypto API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Crypto_API) in a browser.\n\nThis is used to create keys that are visible as strings in a web browser, for use with [ssc-server](https://github.com/nichoth/ssc-server)\n\n\n## install\n\n```\nnpm i ssc-keys\n```\n\n## example\n\n```js\nimport { create } from 'ssc-keys'\n\ncreate().then(kp =\u003e {\n    console.log('*kp*', kp)\n    // =\u003e\n    // *kp* \n    // {\n    //     \"publicKey\": \"BPVcET2JN9HP3M3BaXGAtcZHDmKSrRjbSUXUFPjY+bS4wHesYEqKHIhKCx4mSQb4aZaA5eeRrK73SPWvIxqfXwY=\",\n    //     \"privateKey\": \"MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgjBVEyaAeWR63att0e9guTZpPI9ptabkz+TUpntepf+qhRANCAAT1XBE9iTfRz9zNwWlxgLXGRw5ikq0Y20lF1BT42Pm0uMB3rGBKihyISgseJkkG+GmWgOXnkayu90j1ryMan18G\"\n    // }\n})\n```\n\nKeys are created with this algorithm\n\n```js\n// (algorithm, extractable, uses)\nwebcrypto.subtle.generateKey({\n    name:   'ECDSA',\n    namedCurve: 'P-256'\n}, true, ['sign', 'verify'])\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnichoth%2Fssc-keys","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnichoth%2Fssc-keys","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnichoth%2Fssc-keys/lists"}