Skip to content

Commit 3d63de1

Browse files
authored
Merge pull request #63 from fededim/fededim-patch-2
Update README.md
2 parents 95b04f7 + e414929 commit 3d63de1

22 files changed

+812
-812
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ You can find a [detailed article on CodeProject](https://www.codeproject.com/Art
2323

2424

2525
# Fededim.Extensions.Configuration.Protected.DataProtectionAPITest
26-
This a xUnit test project which tests thoroughly the two above packages in order to improve the reliability and the code quality. It creates sample data for all ConfigurationSources provided by Microsoft .NET (a JSON file, a XML file, environment variables, an in-memory dictionary and command line arguments) containing a 2\*fixed set of entries (10000), one in plaintext with random datatype and value and another with the same value but encrypted. It loads then the sample data with ProtectedConfigurationBuilder in order to decrypt it and tests that all plaintext values are the same as those that have been decrypted. For example a test case on the JsonConfigurationProvider generated a plain-text file with a total size of 60MB and an encrypted file with a total size of 91MB, the test has ended in around 10 seconds for generating the random JSON file, encrypting it, decrypting it using the ProtectedConfigurationBuilder (in order to decrypt 250k encrypted values this step took around 5 seconds in .Net462 and around 3 seconds in net6.0 which is faster) and checking that every decrypted key was equal to the plaintext one. Moreover all the whole set of five test cases was repeated for 1000 iterations (Test Explorer Run Until Failure, unluckily it is not available for all tests, I had to do it separately), both for net462 (total runtime 705 minutes) and net6.0 (total runtime 424 minutes) without raising any error as you can see in the pictures below.
26+
This a xUnit test project which tests thoroughly the two above packages in order to improve the reliability and the code quality. It creates sample data for all ConfigurationSources provided by Microsoft .NET (a JSON file, a XML file, environment variables, an in-memory dictionary and command line arguments) containing a 2\*fixed set of entries (10000), one in plaintext with random datatype and value and another with the same value but encrypted. It loads then the sample data with ProtectedConfigurationBuilder in order to decrypt it and tests that all plaintext values are the same as those that have been decrypted. For example a test case on the JsonConfigurationProvider generated a plain-text file with a total size of 60MB and an encrypted file with a total size of 91MB, the test has ended in around 10 seconds for generating the random JSON file, encrypting it, decrypting it using the ProtectedConfigurationBuilder (in order to decrypt 250k encrypted values this step took around 5 seconds in .Net462 and around 3 seconds in net6.0 which is faster) and checking that every decrypted key was equal to the plaintext one. Moreover all the whole set of five test cases was repeated for 1000 iterations (Test Explorer Run Until Failure, unluckily it is not available for all tests, I had to do it separately for the two frameworks), both for net462 (total runtime 705 minutes) and net8.0 (total runtime 9097 minutes) without raising any error as you can see in the pictures below.
2727

2828
Net462 Endurance Test
2929
![image](https://github.com/user-attachments/assets/7675c2aa-b24f-4e09-8422-55f531e6ca30)
3030

31-
Net6.0 Endurance Test
32-
![image](https://github.com/user-attachments/assets/fc73e3ef-e5e6-4b1c-a4bd-d1a2dbf30e10)
31+
Net8.0 Endurance Test
32+
<img alt="image" src="https://github.com/user-attachments/assets/36fe482a-1400-489a-83e8-cf0c88118e2c" />
3333

3434

3535
# Fededim.Extensions.Configuration.ProtectedJson (OBSOLETE PLEASE USE Fededim.Extensions.Configuration.Protected.DataProtectionAPI)

misc/last_build_artifacts/Cobertura.xml

Lines changed: 167 additions & 167 deletions
Large diffs are not rendered by default.

misc/last_build_artifacts/Fededim.Extensions.Configuration.Protected.DataProataProtectionAPIProtectConfigurationData.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ <h1><a href="index.html" class="back">&lt;</a> Summary - Code Coverage and Repor
2929
</tr>
3030
<tr>
3131
<th>Tag:</th>
32-
<td class="limit-width " title="70_12224880118">70_12224880118</td>
32+
<td class="limit-width " title="73_17254540593">73_17254540593</td>
3333
</tr>
3434
</table>
3535
</div>
@@ -340,7 +340,7 @@ <h2 id="DaFededimExtensionsConfigurationProtectedFededimExtensionsConfigurationP
340340
</tbody>
341341
</table>
342342
</div>
343-
<div class="footer">Generated by: ReportGenerator 5.3.8.0<br />12/8/2024 - 8:13:59 PM<br /><a href="https://github.com/danielpalme/ReportGenerator">GitHub</a> | <a href="https://reportgenerator.io">reportgenerator.io</a></div></div>
343+
<div class="footer">Generated by: ReportGenerator 5.3.8.0<br />8/27/2025 - 1:17:40 AM<br /><a href="https://github.com/danielpalme/ReportGenerator">GitHub</a> | <a href="https://reportgenerator.io">reportgenerator.io</a></div></div>
344344
<div class="containerright">
345345
<div class="containerrightfixed">
346346
<h1>Methods/Properties</h1>

misc/last_build_artifacts/Fededim.Extensions.Configuration.Protected.DataProtectionAPI_DataProtectionAPIProtectProvider.html

Lines changed: 9 additions & 9 deletions
Large diffs are not rendered by default.

misc/last_build_artifacts/Fededim.Extensions.Configuration.Protected_ConfigurationBuilderExtensions.html

Lines changed: 27 additions & 27 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)