{"id":17333056,"url":"https://github.com/jtdowney/speck","last_synced_at":"2025-03-27T06:26:33.140Z","repository":{"id":66167987,"uuid":"562690732","full_name":"jtdowney/speck","owner":"jtdowney","description":"Toy implementation of Speck cipher in Rust","archived":false,"fork":false,"pushed_at":"2022-11-07T11:58:27.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-01T11:41:33.396Z","etag":null,"topics":["cipher","cryptography","speck"],"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/jtdowney.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":"2022-11-07T03:27:32.000Z","updated_at":"2022-11-07T03:28:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"5e8ba7dc-1151-4e1d-90dd-9a9db8bb7fbe","html_url":"https://github.com/jtdowney/speck","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jtdowney%2Fspeck","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jtdowney%2Fspeck/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jtdowney%2Fspeck/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jtdowney%2Fspeck/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jtdowney","download_url":"https://codeload.github.com/jtdowney/speck/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245794343,"owners_count":20673173,"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":["cipher","cryptography","speck"],"created_at":"2024-10-15T14:59:43.823Z","updated_at":"2025-03-27T06:26:33.132Z","avatar_url":"https://github.com/jtdowney.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# speck\n\nThis is a Rust implementation of the [Speck cipher](https://eprint.iacr.org/2013/404.pdf). I built it as a quick experiment to see how I'd implement it with `#[no_std]` Rust and have no intention of putting it into production use. It does pass the test vectors from the paper, [after they were converted to little-endian](https://en.wikipedia.org/wiki/Speck_(cipher)#Endianness).\n\n## Example\n\n```rust\nlet id = 456789;\nlet cipher = Speck64_128::new([0, 1, 3, 4]);\nlet mut data = id.to_le_bytes();\ncipher.seal_in_place(\u0026mut data).unwrap();\nlet encrypted_id = u64::from_le_bytes(data)\n// =\u003e 6883383884621847717\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjtdowney%2Fspeck","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjtdowney%2Fspeck","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjtdowney%2Fspeck/lists"}