{"id":51509494,"url":"https://github.com/murphsicles/zeroize","last_synced_at":"2026-07-08T04:30:56.796Z","repository":{"id":362042580,"uuid":"1257001575","full_name":"murphsicles/zeroize","owner":"murphsicles","description":"Secret-zeroizing memory containers for Zeta","archived":false,"fork":false,"pushed_at":"2026-06-02T09:47:00.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-02T11:21:14.706Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/murphsicles.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-02T09:18:53.000Z","updated_at":"2026-06-02T09:47:03.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/murphsicles/zeroize","commit_stats":null,"previous_names":["murphsicles/zeroize"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/murphsicles/zeroize","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murphsicles%2Fzeroize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murphsicles%2Fzeroize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murphsicles%2Fzeroize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murphsicles%2Fzeroize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/murphsicles","download_url":"https://codeload.github.com/murphsicles/zeroize/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murphsicles%2Fzeroize/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35252324,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-08T02:00:06.796Z","response_time":61,"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":[],"created_at":"2026-07-08T04:30:56.056Z","updated_at":"2026-07-08T04:30:56.791Z","avatar_url":"https://github.com/murphsicles.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# ⚡ @crypto/zeroize — Secret Memory Zeroization for Zeta\n\n**Port of the Rust `zeroize` crate. Securely clear secrets from memory.\nDead-store-resistant. Compiler-fenced.**\n\n---\n\n## 📦 Package\n\n```\nzorbs add @crypto/zeroize\n```\n\n## 🔧 API\n\n### Zeroize Trait\n\n```zeta\nlet mut key: [u8; 32] = [0xAB; 32];\n// ... use the key ...\nkey.zeroize();  // securely overwritten with zeros\n```\n\n### Secret Container (auto-zeroizing on drop)\n\n```zeta\nlet secret_key = Secret::new(my_aes_key);\nlet key_ref = secret_key.as_ref();\n// secret_key is zeroized when it goes out of scope\n```\n\n### Zeroizing Newtype\n\n```zeta\nfn process_key(key: Zeroizing\u003c[u8; 32]\u003e) {\n    let k = key.get();\n    // k is zeroized on function return\n}\n```\n\n### Automatic Zeroize on Drop via `ZeroizeOnDrop`\n\nImplement `Zeroize` on your secret struct, then use `Zeroizing\u003cT\u003e` or\n`Secret\u003cT\u003e` to ensure automatic zeroization at scope exit.\n\n## 🧩 Supported Types\n\n| Type | Zeroize impl |\n|---|---|\n| `i8`, `i16`, `i32`, `i64` | ✅ Volatile write |\n| `u8`, `u16`, `u32`, `u64` | ✅ Volatile write |\n| `[u8; 32]` | ✅ Byte-level volatile loop |\n| `[u8; 64]` | ✅ Byte-level volatile loop |\n| `[T]` (slice) | ✅ Element-by-element + compiler fence |\n| `Vec\u003cT\u003e` | ✅ Elements + clear + compiler fence |\n\n## 🔒 Security Model\n\n1. **Dead-store resistance**: All zeroize operations use `volatile_write`\n   which the compiler cannot optimize away\n2. **Compiler fence**: A `compiler_fence()` prevents reordering of\n   zeroize operations across the barrier\n3. **Double-zeroize protection**: `Secret` and `Zeroizing` track\n   whether they've already been zeroized to prevent panics on\n   double-drop\n4. **No `Copy` on secret types**: `Secret\u003cT\u003e` is not `Copy` —\n   accidental duplication must be explicit\n\n## 📄 License\n\nMIT OR Apache-2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmurphsicles%2Fzeroize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmurphsicles%2Fzeroize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmurphsicles%2Fzeroize/lists"}