Ecng.Security 1.0.233

dotnet add package Ecng.Security --version 1.0.233
                    
NuGet\Install-Package Ecng.Security -Version 1.0.233
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Ecng.Security" Version="1.0.233" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Ecng.Security" Version="1.0.233" />
                    
Directory.Packages.props
<PackageReference Include="Ecng.Security" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Ecng.Security --version 1.0.233
                    
#r "nuget: Ecng.Security, 1.0.233"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Ecng.Security@1.0.233
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Ecng.Security&version=1.0.233
                    
Install as a Cake Addin
#tool nuget:?package=Ecng.Security&version=1.0.233
                    
Install as a Cake Tool

Ecng.Security

Cryptography helpers for hashing, encryption and password storage.

Purpose

Simplify common crypto scenarios such as AES encryption, RSA key handling and password verification.

Key Features

  • AES helpers for symmetric encryption
  • RSA utilities and parameter conversions
  • Simple hashing extensions (data.Md5(), data.Sha256(), ...)
  • Secret class for salted password hashes

Hashing

Standard .NET:

using var md5 = MD5.Create();
var hash = Convert.ToHexString(md5.ComputeHash(data));

With Ecng:

var hash = data.Md5();

AES encryption

var salt = TypeHelper.GenerateSalt(Secret.DefaultSaltSize);
var iv = new byte[16];
byte[] cipher = plain.EncryptAes("secret", salt, iv);
byte[] result = cipher.DecryptAes("secret", salt, iv);

Passwords

Secret secret = "qwerty".CreateSecret();
bool ok = secret.IsValid("qwerty");
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Ecng.Security:

Package Downloads
Ecng.Serialization

Ecng system framework

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.233 128 9/28/2025
1.0.232 254 9/25/2025
1.0.231 2,108 9/2/2025
1.0.230 2,242 8/30/2025
1.0.229 608 8/30/2025
1.0.228 1,226 8/19/2025
1.0.227 5,750 7/13/2025
1.0.226 458 7/13/2025
1.0.225 470 7/12/2025
1.0.224 1,444 7/8/2025
1.0.223 1,036 7/4/2025
1.0.222 500 7/2/2025
1.0.221 4,164 6/16/2025
1.0.220 662 6/9/2025
1.0.219 552 6/8/2025
1.0.218 1,792 5/21/2025
1.0.217 622 5/17/2025
1.0.216 1,807 5/12/2025
1.0.215 563 5/12/2025
1.0.214 2,253 4/17/2025
1.0.213 4,414 3/22/2025
1.0.212 536 3/20/2025
1.0.211 479 3/20/2025
1.0.210 522 3/19/2025
1.0.209 4,457 2/26/2025
1.0.208 587 2/26/2025
1.0.207 7,154 2/5/2025
1.0.206 3,522 1/21/2025
1.0.205 2,849 1/14/2025
1.0.204 1,876 1/12/2025
1.0.203 955 1/10/2025
1.0.202 3,940 12/27/2024
1.0.201 1,392 11/20/2024
1.0.200 3,383 11/18/2024
1.0.199 2,025 11/7/2024
1.0.198 1,450 10/19/2024
1.0.197 3,074 10/12/2024
1.0.196 3,505 10/5/2024
1.0.195 4,323 9/18/2024
1.0.194 568 9/17/2024
1.0.193 4,155 9/3/2024
1.0.192 595 9/1/2024
1.0.191 12,036 6/12/2024
1.0.190 2,940 5/28/2024
1.0.189 3,534 5/4/2024
1.0.188 2,404 4/23/2024
1.0.187 1,700 4/21/2024
1.0.186 740 4/14/2024
1.0.185 5,152 3/28/2024
1.0.184 709 3/17/2024
1.0.183 3,569 2/23/2024
1.0.182 600 2/23/2024
1.0.181 3,562 2/18/2024
1.0.180 610 2/18/2024
1.0.179 634 2/16/2024
1.0.178 2,408 2/13/2024
1.0.177 2,283 2/8/2024
1.0.176 2,600 2/5/2024
1.0.175 583 2/4/2024
1.0.174 2,816 1/23/2024
1.0.173 608 1/23/2024
1.0.172 2,107 1/12/2024
1.0.171 5,101 1/2/2024
1.0.170 744 12/29/2023
1.0.169 16,535 11/12/2023
1.0.168 1,045 11/10/2023
1.0.167 681 11/10/2023
1.0.166 886 11/9/2023
1.0.165 1,545 11/3/2023
1.0.164 672 11/1/2023
1.0.163 750 11/1/2023
1.0.162 24,949 9/8/2023
1.0.161 1,000 9/8/2023
1.0.160 1,171 9/3/2023
1.0.159 1,387 8/21/2023
1.0.158 1,641 8/14/2023
1.0.157 1,747 8/10/2023
1.0.156 40,345 6/29/2023
1.0.155 15,374 5/27/2023
1.0.154 1,166 5/21/2023
1.0.153 1,343 5/19/2023
1.0.152 25,743 5/8/2023
1.0.151 5,166 4/22/2023
1.0.150 1,170 4/21/2023
1.0.149 50,979 4/3/2023
1.0.148 7,667 3/13/2023
1.0.147 19,672 3/6/2023
1.0.146 2,347 2/26/2023
1.0.145 16,837 2/21/2023
1.0.144 1,472 2/20/2023
1.0.143 2,795 2/15/2023
1.0.142 1,476 2/14/2023
1.0.141 33,482 2/9/2023
1.0.140 17,692 2/7/2023
1.0.139 2,051 2/4/2023
1.0.138 21,949 2/2/2023
1.0.137 18,249 1/30/2023
1.0.136 7,025 1/18/2023
1.0.135 45,033 12/30/2022
1.0.134 3,360 12/23/2022
1.0.133 22,463 12/12/2022
1.0.132 24,910 12/4/2022
1.0.131 2,433 12/4/2022
1.0.130 3,143 11/30/2022
1.0.129 2,437 11/29/2022
1.0.128 2,517 11/28/2022
1.0.127 6,584 11/18/2022
1.0.126 29,134 11/11/2022
1.0.125 2,497 11/11/2022
1.0.124 2,472 11/10/2022
1.0.123 2,678 11/5/2022
1.0.122 3,925 11/4/2022
1.0.121 26,165 11/1/2022
1.0.120 26,724 10/16/2022
1.0.119 9,705 9/10/2022
1.0.118 53,498 9/8/2022
1.0.117 3,010 9/8/2022
1.0.116 2,972 9/8/2022
1.0.115 5,278 9/4/2022
1.0.114 93,353 8/24/2022
1.0.113 12,319 8/8/2022
1.0.112 6,281 7/26/2022
1.0.111 3,493 7/26/2022
1.0.110 56,369 7/19/2022
1.0.109 48,620 7/18/2022
1.0.108 8,551 7/8/2022
1.0.107 7,566 6/18/2022
1.0.106 3,446 6/6/2022
1.0.105 100,115 4/30/2022
1.0.104 3,719 4/20/2022
1.0.103 3,825 4/10/2022
1.0.102 3,759 4/7/2022
1.0.101 3,790 4/7/2022
1.0.100 3,843 4/2/2022
1.0.99 14,931 3/29/2022
1.0.98 6,610 3/27/2022
1.0.97 290,175 1/24/2022
1.0.96 164,325 12/29/2021
1.0.95 30,783 12/20/2021
1.0.94 3,942 12/13/2021
1.0.93 31,220 12/7/2021
1.0.92 30,065 12/6/2021
1.0.91 5,423 12/2/2021
1.0.90 31,716 11/29/2021
1.0.89 30,548 11/22/2021
1.0.88 2,301 11/17/2021
1.0.87 32,310 11/13/2021
1.0.86 5,578 11/10/2021
1.0.85 2,445 11/9/2021
1.0.84 64,748 11/5/2021
1.0.83 4,013 11/4/2021
1.0.82 2,343 11/4/2021
1.0.81 2,254 11/3/2021
1.0.80 2,469 10/30/2021
1.0.79 33,646 10/21/2021
1.0.78 2,898 10/17/2021
1.0.77 63,493 10/14/2021
1.0.76 13,419 10/13/2021
1.0.75 2,439 10/12/2021
1.0.74 33,914 10/11/2021
1.0.73 2,333 10/9/2021
1.0.72 37,182 10/7/2021
1.0.71 39,043 10/7/2021
1.0.70 2,380 10/7/2021
1.0.69 2,376 10/6/2021
1.0.68 2,398 9/28/2021
1.0.67 35,804 9/23/2021
1.0.66 3,916 9/10/2021
1.0.65 2,141 9/9/2021
1.0.64 2,088 9/8/2021
1.0.63 2,103 9/8/2021
1.0.62 32,750 9/6/2021
1.0.61 2,337 8/31/2021
1.0.60 565 8/30/2021
1.0.59 31,645 7/31/2021
1.0.58 56,076 7/30/2021
1.0.57 1,273 7/26/2021
1.0.56 83,392 7/5/2021
1.0.55 1,239 7/1/2021
1.0.54 58,752 6/4/2021
1.0.53 84,563 4/26/2021
1.0.52 29,650 4/19/2021
1.0.51 138,525 4/7/2021
1.0.50 28,856 4/3/2021
1.0.49 165,230 3/22/2021
1.0.48 103,524 3/4/2021
1.0.47 30,456 2/26/2021
1.0.46 153,682 2/2/2021
1.0.45 53,243 1/26/2021
1.0.44 52,247 1/24/2021
1.0.43 1,154 1/24/2021
1.0.42 1,306 1/23/2021
1.0.41 53,536 1/20/2021
1.0.40 1,254 1/20/2021
1.0.39 27,494 1/18/2021
1.0.38 1,288 1/18/2021
1.0.37 26,540 1/16/2021
1.0.36 107,708 12/16/2020
1.0.35 53,303 12/14/2020
1.0.34 31,130 12/9/2020
1.0.33 2,058 12/6/2020
1.0.32 1,385 12/2/2020
1.0.31 1,300 12/2/2020
1.0.30 28,867 12/1/2020
1.0.29 151,935 11/12/2020
1.0.29-atestpub 742 11/11/2020
1.0.28 28,518 10/11/2020
1.0.27 104,177 9/9/2020
1.0.26 27,058 9/3/2020
1.0.25 27,707 8/20/2020
1.0.24 78,640 8/9/2020
1.0.23 26,892 7/28/2020
1.0.22 26,853 7/19/2020
1.0.21 51,696 7/6/2020
1.0.20 79,330 6/6/2020
1.0.19 28,100 6/4/2020
1.0.18 53,438 5/29/2020
1.0.17 53,522 5/21/2020
1.0.16 1,501 5/17/2020
1.0.15 51,152 5/12/2020
1.0.14 100,960 5/4/2020
1.0.13 4,302 4/24/2020
1.0.12 5,876 4/22/2020
1.0.11 1,360 4/22/2020
1.0.10 1,432 4/21/2020
1.0.9 28,080 4/18/2020
1.0.8 26,310 4/16/2020
1.0.7 1,347 4/16/2020
1.0.6 22,452 4/15/2020
1.0.5 24,179 4/11/2020
1.0.4 23,881 4/3/2020
1.0.3 1,292 4/1/2020
1.0.2 11,162 3/27/2020
1.0.1 10,092 3/22/2020
1.0.0 3,035 3/22/2020