{"id":19128829,"url":"https://github.com/peerlibrary/meteor-crypto","last_synced_at":"2025-08-19T01:08:29.260Z","repository":{"id":18712206,"uuid":"21922935","full_name":"peerlibrary/meteor-crypto","owner":"peerlibrary","description":"Efficient crypto operations in web workers","archived":false,"fork":false,"pushed_at":"2015-11-22T22:54:04.000Z","size":92,"stargazers_count":2,"open_issues_count":2,"forks_count":1,"subscribers_count":28,"default_branch":"master","last_synced_at":"2025-06-03T21:12:25.574Z","etag":null,"topics":["meteor","meteor-package"],"latest_commit_sha":null,"homepage":"http://atmospherejs.com/peerlibrary/crypto","language":"CoffeeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/peerlibrary.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":null,"support":null}},"created_at":"2014-07-17T00:21:55.000Z","updated_at":"2025-03-04T10:50:33.000Z","dependencies_parsed_at":"2022-09-25T01:50:41.113Z","dependency_job_id":null,"html_url":"https://github.com/peerlibrary/meteor-crypto","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/peerlibrary/meteor-crypto","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peerlibrary%2Fmeteor-crypto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peerlibrary%2Fmeteor-crypto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peerlibrary%2Fmeteor-crypto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peerlibrary%2Fmeteor-crypto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peerlibrary","download_url":"https://codeload.github.com/peerlibrary/meteor-crypto/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peerlibrary%2Fmeteor-crypto/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271083763,"owners_count":24696363,"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","status":"online","status_checked_at":"2025-08-18T02:00:08.743Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["meteor","meteor-package"],"created_at":"2024-11-09T06:05:47.154Z","updated_at":"2025-08-19T01:08:29.229Z","avatar_url":"https://github.com/peerlibrary.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Crypto\n======\n\nMeteor smart package which provides a [web workers](https://en.wikipedia.org/wiki/Web_worker) enhanced\nefficient crypto operations. Instead of computing computationally intensive crypto operations in main\nthread of user's browser it uses a web worker, if possible.\n\nAdding this package to your [Meteor](http://www.meteor.com/) application adds `Crypto` object into the global scope.\n\nBoth client and server side. It provides equivalent API on the server side.\n\nInstallation\n------------\n\n```\nmeteor add peerlibrary:crypto\n```\n\nAPI\n---\n\n`var sha256 = new Crypto.SHA256(params)` creates an object representing a new SHA256 computation. It takes object `params`:\n\n * `onProgress(progress)`: progress callback function, if it returns `false` update prematurely stops, if possible (optional)\n    * `progress`: float, between 0 and 1 (inclusive), if it can be computed\n * `size`: complete file size, if known (optional)\n\n`sha256.update(data, callback)` updates the hash content with the given data:\n\n * `data`: chunk of data to be added for hash computation (required)\n * `callback(error)`: callback function (optional)\n    * `error`: error or null if there is no error\n\n`sha256.finalize(callback)` updates the hash content with the given data:\n\n * `callback(error, sha256)`: callback function (required on client)\n    * `error`: error or null if there is no error\n    * `sha256`: result as a hex string\n\nOn the server side callbacks are not required. Methods are run synchronous\nanyway.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeerlibrary%2Fmeteor-crypto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeerlibrary%2Fmeteor-crypto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeerlibrary%2Fmeteor-crypto/lists"}