{"id":28393877,"url":"https://github.com/2toad/rijndael256","last_synced_at":"2026-03-07T21:02:07.476Z","repository":{"id":60774026,"uuid":"69812659","full_name":"2Toad/Rijndael256","owner":"2Toad","description":"AES cryptographic library for .NET Framework and .NET Core","archived":false,"fork":false,"pushed_at":"2024-12-16T22:50:37.000Z","size":56,"stargazers_count":33,"open_issues_count":10,"forks_count":8,"subscribers_count":5,"default_branch":"master","last_synced_at":"2026-02-25T08:22:16.551Z","etag":null,"topics":["ae","aes","aes-128","aes-192","aes-256","ciphertext","cryptography","encrypt-then-mac","encryption","rijndael"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/2Toad.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":"2016-10-02T17:59:04.000Z","updated_at":"2026-01-14T05:10:33.000Z","dependencies_parsed_at":"2024-06-18T16:56:13.389Z","dependency_job_id":"bf8db7ec-e775-4074-ae3c-1b214730f50f","html_url":"https://github.com/2Toad/Rijndael256","commit_stats":{"total_commits":51,"total_committers":1,"mean_commits":51.0,"dds":0.0,"last_synced_commit":"7c16046a5a1b66de5a93767411e9edbfc8320dd4"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/2Toad/Rijndael256","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2Toad%2FRijndael256","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2Toad%2FRijndael256/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2Toad%2FRijndael256/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2Toad%2FRijndael256/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/2Toad","download_url":"https://codeload.github.com/2Toad/Rijndael256/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2Toad%2FRijndael256/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30231490,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T19:01:10.287Z","status":"ssl_error","status_checked_at":"2026-03-07T18:59:58.103Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["ae","aes","aes-128","aes-192","aes-256","ciphertext","cryptography","encrypt-then-mac","encryption","rijndael"],"created_at":"2025-05-31T17:09:37.927Z","updated_at":"2026-03-07T21:02:07.470Z","avatar_url":"https://github.com/2Toad.png","language":"C#","readme":"# Rijndael256\r\n\r\n[![NuGet](https://img.shields.io/nuget/v/Rijndael256.svg?maxAge=86400)](https://www.nuget.org/packages/Rijndael256/)\r\n[![Build Status](https://travis-ci.org/2Toad/Rijndael256.svg?branch=master)](https://travis-ci.org/2Toad/Rijndael256)\r\n\r\nAES cryptographic library for .NET Framework and .NET Core\r\n\r\n---\r\n\r\n## About\r\nRijndael256 makes encrypting data and files a breeze with the AES symmetric-key cipher Rijndael.\r\n\r\n### Features\r\n\r\n* Advanced Encryption Standard (AES)\r\n* Rijndael symmetric-key cipher:\r\n\t* Encrypt data or files\r\n\t* AES key sizes:\r\n\t\t* 128-bit\r\n\t\t* 192-bit\r\n\t\t* 256-bit\r\n\t* CBC Mode\r\n* [Authenticated Encryption (AE)](#authenticated-encryption-ae)\r\n\t* Encrypt-then-MAC (EtM)\r\n* Cryptographic hashes:\r\n\t* SHA-512\r\n\t* PBKDF2\r\n\r\n## Quick Start\r\n\r\n### Encrypt a string using Rijndael AES 256-bit\r\n\r\n```C#\r\nstring password = \"sKzvYk#1Pn33!YN\";  // The password to encrypt the data with\r\nstring plaintext = \"Top secret data\"; // The string to encrypt\r\n\r\n// Encrypt the string\r\nstring ciphertext = Rijndael.Encrypt(plaintext, password, KeySize.Aes256);\r\n\r\n// Decrypt the string\r\nplaintext = Rijndael.Decrypt(ciphertext, password, KeySize.Aes256);\r\n```\r\n\r\n### Encrypt a string using [Authenticated Encryption (AE)](#authenticated-encryption-ae)\r\n\r\n```C#\r\nstring password = \"KQpc@HuQ66b$z37\";  // The password to encrypt the data with\r\nstring plaintext = \"Top secret data\"; // The string to encrypt\r\n\r\n// Encrypt the string\r\nstring aeCiphertext = RijndaelEtM.Encrypt(plaintext, password, KeySize.Aes256);\r\n\r\n// Decrypt the string\r\nplaintext = RijndaelEtM.Decrypt(aeCiphertext, password, KeySize.Aes256);\r\n```\r\n\r\n### Encrypt a file using Rijndael AES 256-bit\r\n\r\n```C#\r\nstring password = \"2zj9cV!50BwJ$A1\";            // The password to encrypt the file with\r\nstring plaintextFile = @\"C:\\TopSecretFile.png\"; // The file to encrypt\r\nstring ciphertextFile = @\"C:\\SecureFile\";       // The encrypted file (extension unnecessary)\r\n\r\n// Encrypt the file\r\nRijndael.Encrypt(plaintextFile, ciphertextFile, password, KeySize.Aes256);\r\n\r\n// Decrypt the file\r\nRijndael.Decrypt(ciphertextFile, plaintextFile, password, KeySize.Aes256);\r\n```\r\n\r\n----------\r\n\r\n## Settings\r\n\r\nThe *Settings* object is a collection of mutable defaults used throughout the library. Modification of these defaults is not necessary, but is made available for developers who want finer control of Rijndael256.\r\n\r\n| Setting        | Description                                    | Default |\r\n|----------------|------------------------------------------------|---------|\r\n| HashIterations | The number of iterations used to derive hashes | 10000   |\r\n\r\n### Example\r\n\r\n```C#\r\n// The HashIterations setting is used in several places throughout the lib,\r\n// with Rijndael.Encrypt being just one of them. After making this change,\r\n// any future calls to Rijndael.Encrypt will make use of this new value\r\nSettings.HashIterations = 25000;\r\n\r\n// To reset all the settings to their default values\r\nSettings.Reset();\r\n```\r\n\r\n## Appendix\r\n\r\n### Authenticated Encryption (AE)\r\n\r\nAE adds an integrity check to the resulting ciphertext, so we can authenticate the ciphertext before decrypting it. Whereas encryption provides confidentiality, AE adds authenticity.\r\n\r\n#### Encrypt-then-MAC (EtM)\r\n\r\nRijndael256 offers AE via the EtM encryption mode, which was standardized in ISO/IEC 19772:2009.\r\n\r\n##### EtM Workflow\r\n\r\n 1. **Encryption**:\r\n\t 1. The plaintext is encrypted.\r\n\t 2. A MAC is calculated from the resulting ciphertext.\r\n\t 3. The MAC is appended to the ciphertext.\r\n 2. **Decryption**:\r\n\t 1. The MAC is extracted from the ciphertext (M\u003csub\u003eo\u003c/sub\u003e).\r\n\t 2. A MAC is calculated from the ciphertext (M\u003csub\u003en\u003c/sub\u003e).\r\n\t 3. The MACs are compared for equality (M\u003csub\u003eo\u003c/sub\u003e == M\u003csub\u003en\u003c/sub\u003e)\r\n\t\t 1. Equal: The ciphertext is decrypted.\r\n\t\t 2. Not Equal:  Authentication has failed -- the decryption process is aborted, with no attempt being made to decrypt the unauthentic ciphertext.\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2toad%2Frijndael256","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F2toad%2Frijndael256","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2toad%2Frijndael256/lists"}