Ecng.Security 1.0.225

There is a newer version of this package available.
See the version list below for details.
dotnet add package Ecng.Security --version 1.0.225
                    
NuGet\Install-Package Ecng.Security -Version 1.0.225
                    
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.225" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Ecng.Security" Version="1.0.225" />
                    
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.225
                    
#r "nuget: Ecng.Security, 1.0.225"
                    
#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.225
                    
#: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.225
                    
Install as a Cake Addin
#tool nuget:?package=Ecng.Security&version=1.0.225
                    
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.234 323 10/3/2025
1.0.233 1,145 9/28/2025
1.0.232 707 9/25/2025
1.0.231 2,682 9/2/2025
1.0.230 2,722 8/30/2025
1.0.229 755 8/30/2025
1.0.228 1,562 8/19/2025
1.0.227 7,025 7/13/2025
1.0.226 569 7/13/2025
1.0.225 587 7/12/2025
1.0.224 1,746 7/8/2025
1.0.223 1,262 7/4/2025
1.0.222 617 7/2/2025
1.0.221 5,130 6/16/2025
1.0.220 776 6/9/2025
1.0.219 624 6/8/2025
1.0.218 2,206 5/21/2025
1.0.217 789 5/17/2025
1.0.216 2,234 5/12/2025
1.0.215 686 5/12/2025
1.0.214 2,857 4/17/2025
1.0.213 5,402 3/22/2025
1.0.212 644 3/20/2025
1.0.211 593 3/20/2025
1.0.210 616 3/19/2025
1.0.209 5,303 2/26/2025
1.0.208 688 2/26/2025
1.0.207 8,620 2/5/2025
1.0.206 4,460 1/21/2025
1.0.205 3,570 1/14/2025
1.0.204 2,399 1/12/2025
1.0.203 1,195 1/10/2025
1.0.202 4,622 12/27/2024
1.0.201 1,580 11/20/2024
1.0.200 3,987 11/18/2024
1.0.199 2,392 11/7/2024
1.0.198 1,768 10/19/2024
1.0.197 3,646 10/12/2024
1.0.196 4,185 10/5/2024
1.0.195 5,188 9/18/2024
1.0.194 667 9/17/2024
1.0.193 4,820 9/3/2024
1.0.192 692 9/1/2024
1.0.191 14,130 6/12/2024
1.0.190 3,433 5/28/2024
1.0.189 4,130 5/4/2024
1.0.188 2,816 4/23/2024
1.0.187 1,953 4/21/2024
1.0.186 849 4/14/2024
1.0.185 6,003 3/28/2024
1.0.184 800 3/17/2024
1.0.183 4,059 2/23/2024
1.0.182 680 2/23/2024
1.0.181 4,006 2/18/2024
1.0.180 713 2/18/2024
1.0.179 762 2/16/2024
1.0.178 2,721 2/13/2024
1.0.177 2,550 2/8/2024
1.0.176 2,901 2/5/2024
1.0.175 668 2/4/2024
1.0.174 3,109 1/23/2024
1.0.173 707 1/23/2024
1.0.172 2,371 1/12/2024
1.0.171 5,738 1/2/2024
1.0.170 852 12/29/2023
1.0.169 18,653 11/12/2023
1.0.168 1,211 11/10/2023
1.0.167 798 11/10/2023
1.0.166 1,033 11/9/2023
1.0.165 1,807 11/3/2023
1.0.164 784 11/1/2023
1.0.163 862 11/1/2023
1.0.162 26,080 9/8/2023
1.0.161 1,176 9/8/2023
1.0.160 1,363 9/3/2023
1.0.159 1,637 8/21/2023
1.0.158 1,870 8/14/2023
1.0.157 2,026 8/10/2023
1.0.156 41,536 6/29/2023
1.0.155 16,103 5/27/2023
1.0.154 1,329 5/21/2023
1.0.153 1,490 5/19/2023
1.0.152 26,823 5/8/2023
1.0.151 5,821 4/22/2023
1.0.150 1,294 4/21/2023
1.0.149 52,247 4/3/2023
1.0.148 8,322 3/13/2023
1.0.147 20,300 3/6/2023
1.0.146 2,468 2/26/2023
1.0.145 17,133 2/21/2023
1.0.144 1,557 2/20/2023
1.0.143 2,938 2/15/2023
1.0.142 1,554 2/14/2023
1.0.141 34,097 2/9/2023
1.0.140 17,987 2/7/2023
1.0.139 2,163 2/4/2023
1.0.138 22,431 2/2/2023
1.0.137 18,542 1/30/2023
1.0.136 7,400 1/18/2023
1.0.135 46,122 12/30/2022
1.0.134 3,543 12/23/2022
1.0.133 22,899 12/12/2022
1.0.132 25,439 12/4/2022
1.0.131 2,536 12/4/2022
1.0.130 3,267 11/30/2022
1.0.129 2,529 11/29/2022
1.0.128 2,617 11/28/2022
1.0.127 6,868 11/18/2022
1.0.126 29,652 11/11/2022
1.0.125 2,568 11/11/2022
1.0.124 2,555 11/10/2022
1.0.123 2,762 11/5/2022
1.0.122 4,054 11/4/2022
1.0.121 26,585 11/1/2022
1.0.120 27,068 10/16/2022
1.0.119 9,946 9/10/2022
1.0.118 54,044 9/8/2022
1.0.117 3,091 9/8/2022
1.0.116 3,056 9/8/2022
1.0.115 5,411 9/4/2022
1.0.114 94,069 8/24/2022
1.0.113 12,649 8/8/2022
1.0.112 6,435 7/26/2022
1.0.111 3,585 7/26/2022
1.0.110 56,961 7/19/2022
1.0.109 48,984 7/18/2022
1.0.108 8,757 7/8/2022
1.0.107 7,777 6/18/2022
1.0.106 3,527 6/6/2022
1.0.105 100,982 4/30/2022
1.0.104 3,806 4/20/2022
1.0.103 3,901 4/10/2022
1.0.102 3,822 4/7/2022
1.0.101 3,852 4/7/2022
1.0.100 3,923 4/2/2022
1.0.99 15,180 3/29/2022
1.0.98 6,734 3/27/2022
1.0.97 293,152 1/24/2022
1.0.96 165,712 12/29/2021
1.0.95 31,212 12/20/2021
1.0.94 4,072 12/13/2021
1.0.93 31,649 12/7/2021
1.0.92 30,474 12/6/2021
1.0.91 5,627 12/2/2021
1.0.90 32,178 11/29/2021
1.0.89 30,958 11/22/2021
1.0.88 2,370 11/17/2021
1.0.87 32,747 11/13/2021
1.0.86 5,783 11/10/2021
1.0.85 2,510 11/9/2021
1.0.84 65,519 11/5/2021
1.0.83 4,164 11/4/2021
1.0.82 2,409 11/4/2021
1.0.81 2,333 11/3/2021
1.0.80 2,551 10/30/2021
1.0.79 33,981 10/21/2021
1.0.78 2,980 10/17/2021
1.0.77 64,109 10/14/2021
1.0.76 13,720 10/13/2021
1.0.75 2,540 10/12/2021
1.0.74 34,265 10/11/2021
1.0.73 2,405 10/9/2021
1.0.72 37,524 10/7/2021
1.0.71 39,519 10/7/2021
1.0.70 2,468 10/7/2021
1.0.69 2,458 10/6/2021
1.0.68 2,483 9/28/2021
1.0.67 36,202 9/23/2021
1.0.66 4,055 9/10/2021
1.0.65 2,205 9/9/2021
1.0.64 2,139 9/8/2021
1.0.63 2,144 9/8/2021
1.0.62 33,136 9/6/2021
1.0.61 2,389 8/31/2021
1.0.60 579 8/30/2021
1.0.59 31,935 7/31/2021
1.0.58 56,587 7/30/2021
1.0.57 1,304 7/26/2021
1.0.56 84,161 7/5/2021
1.0.55 1,273 7/1/2021
1.0.54 59,286 6/4/2021
1.0.53 85,312 4/26/2021
1.0.52 29,936 4/19/2021
1.0.51 139,793 4/7/2021
1.0.50 29,112 4/3/2021
1.0.49 166,664 3/22/2021
1.0.48 104,498 3/4/2021
1.0.47 30,829 2/26/2021
1.0.46 155,144 2/2/2021
1.0.45 53,703 1/26/2021
1.0.44 52,800 1/24/2021
1.0.43 1,187 1/24/2021
1.0.42 1,341 1/23/2021
1.0.41 54,034 1/20/2021
1.0.40 1,287 1/20/2021
1.0.39 27,758 1/18/2021
1.0.38 1,300 1/18/2021
1.0.37 26,770 1/16/2021
1.0.36 108,832 12/16/2020
1.0.35 53,924 12/14/2020
1.0.34 31,519 12/9/2020
1.0.33 2,103 12/6/2020
1.0.32 1,417 12/2/2020
1.0.31 1,321 12/2/2020
1.0.30 29,226 12/1/2020
1.0.29 153,901 11/12/2020
1.0.29-atestpub 768 11/11/2020
1.0.28 28,798 10/11/2020
1.0.27 105,210 9/9/2020
1.0.26 27,336 9/3/2020
1.0.25 27,916 8/20/2020
1.0.24 79,372 8/9/2020
1.0.23 27,149 7/28/2020
1.0.22 27,108 7/19/2020
1.0.21 52,171 7/6/2020
1.0.20 80,039 6/6/2020
1.0.19 28,369 6/4/2020
1.0.18 53,916 5/29/2020
1.0.17 54,001 5/21/2020
1.0.16 1,521 5/17/2020
1.0.15 51,554 5/12/2020
1.0.14 101,783 5/4/2020
1.0.13 4,409 4/24/2020
1.0.12 5,982 4/22/2020
1.0.11 1,391 4/22/2020
1.0.10 1,457 4/21/2020
1.0.9 28,347 4/18/2020
1.0.8 26,518 4/16/2020
1.0.7 1,376 4/16/2020
1.0.6 22,620 4/15/2020
1.0.5 24,436 4/11/2020
1.0.4 24,131 4/3/2020
1.0.3 1,330 4/1/2020
1.0.2 11,387 3/27/2020
1.0.1 10,308 3/22/2020
1.0.0 3,138 3/22/2020