{"id":19654282,"url":"https://github.com/aimenux/cipherbenchdemo","last_synced_at":"2026-06-10T03:31:27.913Z","repository":{"id":116559607,"uuid":"380603701","full_name":"aimenux/CipherBenchDemo","owner":"aimenux","description":"Benchmarking implementation ways of encryption/decryption with AES cipher","archived":false,"fork":false,"pushed_at":"2021-06-29T10:58:06.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-27T01:54:34.457Z","etag":null,"topics":["bouncycastle","cipher-algorithms","encryption-decryption","net50","rijndaelmanaged","vs19"],"latest_commit_sha":null,"homepage":"","language":"C#","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/aimenux.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}},"created_at":"2021-06-26T22:04:31.000Z","updated_at":"2021-06-29T11:00:42.000Z","dependencies_parsed_at":"2023-07-08T16:00:11.539Z","dependency_job_id":null,"html_url":"https://github.com/aimenux/CipherBenchDemo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aimenux/CipherBenchDemo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimenux%2FCipherBenchDemo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimenux%2FCipherBenchDemo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimenux%2FCipherBenchDemo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimenux%2FCipherBenchDemo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aimenux","download_url":"https://codeload.github.com/aimenux/CipherBenchDemo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimenux%2FCipherBenchDemo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34136112,"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-06-10T02:00:07.152Z","response_time":89,"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":["bouncycastle","cipher-algorithms","encryption-decryption","net50","rijndaelmanaged","vs19"],"created_at":"2024-11-11T15:16:49.724Z","updated_at":"2026-06-10T03:31:27.908Z","avatar_url":"https://github.com/aimenux.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿[![.NET 5](https://github.com/aimenux/CipherBenchDemo/actions/workflows/ci.yml/badge.svg)](https://github.com/aimenux/CipherBenchDemo/actions/workflows/ci.yml)\n\n# CipherBenchDemo\n```\nBenchmarking implementation ways of encryption/decryption with AES cipher\n```\n\nIn this demo, i m using [BenchmarkDotNet](https://github.com/dotnet/BenchmarkDotNet) library in order to benchmark various implementation of [AES cipher](https://en.wikipedia.org/wiki/Advanced_Encryption_Standard) :\n\u003e\n\u003e :one: Using [Cryptography microsoft library](https://docs.microsoft.com/en-us/dotnet/api/system.security.cryptography)\n\u003e\n\u003e :two: Using [BouncyCastle library](https://github.com/bcgit/bc-csharp)\n\u003e\n\nIn order to run benchmarks, type these commands in your favorite terminal :\n\u003e\n\u003e :writing_hand: `.\\App.exe --filter EncryptionBench`\n\u003e\n\u003e :writing_hand: `.\\App.exe --filter DecryptionBench`\n\u003e\n\n```\n|            Method | Length |     Mean |     Error |    StdDev |       Min |      Max | Rank |  Gen 0 | Gen 1 | Gen 2 | Allocated |\n|------------------ |------- |---------:|----------:|----------:|----------:|---------:|-----:|-------:|------:|------:|----------:|\n| EncryptWithLibTwo |     16 | 1.022 μs | 0.0162 μs | 0.0135 μs | 0.9966 μs | 1.041 μs |    1 | 0.1106 |     - |     - |     464 B |\n| EncryptWithLibOne |     16 | 1.416 μs | 0.0278 μs | 0.0399 μs | 1.3603 μs | 1.493 μs |    2 | 0.1812 |     - |     - |     760 B |\n|                   |        |          |           |           |           |          |      |        |       |       |           |\n| EncryptWithLibTwo |     32 | 1.496 μs | 0.0275 μs | 0.0338 μs | 1.4544 μs | 1.580 μs |    1 | 0.1564 |     - |     - |     656 B |\n| EncryptWithLibOne |     32 | 1.663 μs | 0.0247 μs | 0.0219 μs | 1.6173 μs | 1.694 μs |    2 | 0.2270 |     - |     - |     952 B |\n|                   |        |          |           |           |           |          |      |        |       |       |           |\n| EncryptWithLibOne |     64 | 2.311 μs | 0.0448 μs | 0.0419 μs | 2.2435 μs | 2.385 μs |    1 | 0.3166 |     - |     - |   1,336 B |\n| EncryptWithLibTwo |     64 | 2.400 μs | 0.0469 μs | 0.0482 μs | 2.3325 μs | 2.504 μs |    2 | 0.2480 |     - |     - |   1,040 B |\n|                   |        |          |           |           |           |          |      |        |       |       |           |\n| EncryptWithLibOne |    128 | 3.644 μs | 0.0719 μs | 0.0910 μs | 3.5400 μs | 3.869 μs |    1 | 0.4997 |     - |     - |   2,104 B |\n| EncryptWithLibTwo |    128 | 4.255 μs | 0.0647 μs | 0.0573 μs | 4.1257 μs | 4.322 μs |    2 | 0.4272 |     - |     - |   1,808 B |\n|                   |        |          |           |           |           |          |      |        |       |       |           |\n| EncryptWithLibOne |    256 | 5.906 μs | 0.0756 μs | 0.0707 μs | 5.7522 μs | 6.001 μs |    1 | 0.8698 |     - |     - |   3,640 B |\n| EncryptWithLibTwo |    256 | 8.040 μs | 0.1423 μs | 0.1331 μs | 7.8380 μs | 8.296 μs |    2 | 0.7935 |     - |     - |   3,344 B |\n```\n\n**`Tools`** : vs19, net 5.0","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faimenux%2Fcipherbenchdemo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faimenux%2Fcipherbenchdemo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faimenux%2Fcipherbenchdemo/lists"}