{"id":21022384,"url":"https://github.com/aegis-dev/specknet","last_synced_at":"2025-06-15T13:36:52.763Z","repository":{"id":113663463,"uuid":"353431059","full_name":"aegis-dev/SpeckNet","owner":"aegis-dev","description":"C# implementation of Speck cipher","archived":false,"fork":false,"pushed_at":"2022-03-16T20:42:48.000Z","size":14,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-12T11:13:17.953Z","etag":null,"topics":["cipher","cipher-algorithms","ciphers","crypto","crypto-library","cryptography","cryptography-algorithms","cryptography-library","cyber-security","cybersecurity","encryption","encryption-algorithm","encryption-algorithms","encryption-decryption","library","nsa","speck","speck-128","speck-64"],"latest_commit_sha":null,"homepage":"","language":"C#","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/aegis-dev.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":"2021-03-31T17:03:13.000Z","updated_at":"2024-04-27T13:39:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"7e48a8e6-b489-477f-8959-e840a19bc00c","html_url":"https://github.com/aegis-dev/SpeckNet","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/aegis-dev%2FSpeckNet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aegis-dev%2FSpeckNet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aegis-dev%2FSpeckNet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aegis-dev%2FSpeckNet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aegis-dev","download_url":"https://codeload.github.com/aegis-dev/SpeckNet/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248557843,"owners_count":21124168,"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","cipher-algorithms","ciphers","crypto","crypto-library","cryptography","cryptography-algorithms","cryptography-library","cyber-security","cybersecurity","encryption","encryption-algorithm","encryption-algorithms","encryption-decryption","library","nsa","speck","speck-128","speck-64"],"created_at":"2024-11-19T11:11:36.096Z","updated_at":"2025-04-12T11:13:20.022Z","avatar_url":"https://github.com/aegis-dev.png","language":"C#","readme":"# SpeckNet\n.Net 5.0 implementation of Speck cipher in C#.\n\nSpeck is a family of lightweight block ciphers publicly released by the National Security Agency (NSA) in June 2013. Speck has been optimized for performance in software implementations.\n\nImplemented by following official NSA [implementation guide](https://nsacyber.github.io/simon-speck/implementations/ImplementationGuide1.1.pdf) and tested with their test vectors.\n\n## Supported block and key sizes\n* 64 bit block 96 bit key\n* 64 bit block 128 bit key\n* 128 bit block 128 bit key\n* 128 bit block 192 bit key\n* 128 bit block 256 bit key\n\n\n## Supported modes of operation\n* ECB (Electronic codebook) - default mode\n* CBC (Cipher block chaining)\n\n## Supported padding\n* PKCS#7\n\n## Supported .Net versions\n\nCurrently implementation is writen for .Net 5.0 but if there is a need I can happily downgrade it to .Net standard 2.0.\n\n## Sample\n\n```cs\nbyte[] payload = new byte[]\n{\n    0x20, 0x6d, 0x61, 0x64, 0x65, 0x20, 0x69, 0x74,\n    0x20, 0x65, 0x71, 0x75, 0x69, 0x76, 0x61, 0x6c\n};\n\nbyte[] keyBytes = new byte[]\n{\n    0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,\n    0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f\n};\n\nSpeck speck = SpeckProvider.NewInstance(EncryptionType.Speck_128_128, keyBytes);\n\nbyte[] encrypted = speck.Encrypt(payload, EncryptionMode.CBC, Padding.PKCS7);\nbyte[] decrypted = speck.Decrypt(encrypted, EncryptionMode.CBC, Padding.PKCS7);\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faegis-dev%2Fspecknet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faegis-dev%2Fspecknet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faegis-dev%2Fspecknet/lists"}