{"id":15689480,"url":"https://github.com/littledivy/webcrypto","last_synced_at":"2025-05-12T19:14:29.932Z","repository":{"id":103502540,"uuid":"411364894","full_name":"littledivy/webcrypto","owner":"littledivy","description":"[WIP] WebCrypto API implementation in pure Rust","archived":false,"fork":false,"pushed_at":"2021-09-30T11:44:44.000Z","size":14,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-12T19:14:23.356Z","etag":null,"topics":["crypto","hacktoberfest","rust","webcrypto"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/littledivy.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},"funding":{"github":"littledivy"}},"created_at":"2021-09-28T16:46:51.000Z","updated_at":"2022-03-07T15:02:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"343f50ce-798c-45dd-ad3c-a308c4e62951","html_url":"https://github.com/littledivy/webcrypto","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"1fdaa6be67738a2a21b899017710bcf966cc7a7d"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/littledivy%2Fwebcrypto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/littledivy%2Fwebcrypto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/littledivy%2Fwebcrypto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/littledivy%2Fwebcrypto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/littledivy","download_url":"https://codeload.github.com/littledivy/webcrypto/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253805844,"owners_count":21967054,"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":["crypto","hacktoberfest","rust","webcrypto"],"created_at":"2024-10-03T18:02:20.687Z","updated_at":"2025-05-12T19:14:29.912Z","avatar_url":"https://github.com/littledivy.png","language":"Rust","funding_links":["https://github.com/sponsors/littledivy"],"categories":[],"sub_categories":[],"readme":"## [wip] webcrypto\n\nImplementation of the [Web Cryptography specification](https://w3c.github.io/webcrypto) in Rust.\n\nThis crate hopes to ease interoperability between WASM and native targets.\n\nIf you are a browser or just a random person whose in a looking-to-port-JS-code-but-don't-know-how-to-do-that-with-existing-crates-in-the-Rust-ecosystem situation? This crate is for you.\n\n### Usage\n\nUnlike WebCrypto, the crate gives you the resposibility of\nstoring raw keying material. This is wrapped in the opaque\n`KeyMaterial` wrapper type to avoid leakages through bad API usage or backtrace.\nYou should carefully choose how you store the `KeyMaterial` depending\non your use case.\n\n```rust\n/// A simple KeyMaterial storage impl\npub struct InMemoryVault(Vec\u003cKeyMaterial\u003e);\n\nimpl KeyStorage for InMemoryVault {\n\n  /// This will be the _hidden_ handle to a `CryptoKey`\n  /// In future, this will be required to be serde\n  /// serializable.\n  type Handle = usize;\n\n  /// Put opaque key material into your backend and return\n  /// a handle.\n  fn store(\u0026mut self, key: KeyMaterial) -\u003e usize {\n    self.0.push(key);\n    self.0.len() - 1\n  }\n\n  /// Get opaque key material\n  fn get(\u0026self, handle: usize) -\u003e Option\u003c\u0026KeyMaterial\u003e {\n    self.0.get(handle)\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flittledivy%2Fwebcrypto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flittledivy%2Fwebcrypto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flittledivy%2Fwebcrypto/lists"}