{"id":15568163,"url":"https://github.com/oherrala/shielded","last_synced_at":"2025-04-24T00:05:28.955Z","repository":{"id":45346018,"uuid":"193774292","full_name":"oherrala/shielded","owner":"oherrala","description":null,"archived":false,"fork":false,"pushed_at":"2023-10-17T09:56:55.000Z","size":9,"stargazers_count":9,"open_issues_count":2,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-24T00:05:23.644Z","etag":null,"topics":["encryption","hacktoberfest","rust","rust-crate","rust-lang","security"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/oherrala.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}},"created_at":"2019-06-25T19:55:30.000Z","updated_at":"2024-09-21T06:35:54.000Z","dependencies_parsed_at":"2025-03-06T22:41:41.476Z","dependency_job_id":null,"html_url":"https://github.com/oherrala/shielded","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oherrala%2Fshielded","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oherrala%2Fshielded/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oherrala%2Fshielded/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oherrala%2Fshielded/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oherrala","download_url":"https://codeload.github.com/oherrala/shielded/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250535098,"owners_count":21446508,"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":["encryption","hacktoberfest","rust","rust-crate","rust-lang","security"],"created_at":"2024-10-02T17:14:35.634Z","updated_at":"2025-04-24T00:05:28.912Z","avatar_url":"https://github.com/oherrala.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Shielded Memory\n\nA crate drawing inspiration and parts of the documentation from OpenBSD's /\nOpenSSH's\n[commit](https://github.com/openbsd/src/commit/707316f931b35ef67f1390b2a00386bdd0863568).\n\nThis crate implements a Shielded Memory providing protection at rest for\nsecrets kept in memory against speculation and memory sidechannel attacks\nlike Spectre, Meltdown, Rowhammer and Rambleed. The contents of the memory\nare encrypted when [`Shielded`](struct.Shielded.html) is constructed, then\ndecrypted on demand and encrypted again after memory is no longer needed.\n\nThe memory protection is achieved by generating a 16kB secure random prekey\nwhich is then hashed with SHA512 to construct an encryption key for\nChaCha20-Poly1305 cipher. This cipher is then used to encrypt the contents of\nmemory in-place.\n\nAttackers must recover the entire prekey with high accuracy before they can\nattempt to decrypt the shielded memory, but the current generation of attacks\nhave bit error rates that, when applied cumulatively to the entire prekey, make\nthis unlikely.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foherrala%2Fshielded","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foherrala%2Fshielded","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foherrala%2Fshielded/lists"}