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.280 58 1/1/2026
1.0.279 247 12/31/2025
1.0.278 327 12/30/2025
1.0.277 316 12/30/2025
1.0.276 435 12/29/2025
1.0.275 945 12/26/2025
1.0.274 557 12/26/2025
1.0.273 536 12/26/2025
1.0.272 562 12/26/2025
1.0.271 618 12/25/2025
1.0.270 640 12/25/2025
1.0.269 1,139 12/22/2025
1.0.268 639 12/21/2025
1.0.267 674 12/19/2025
1.0.266 670 12/19/2025
1.0.265 863 12/17/2025
1.0.264 927 12/15/2025
1.0.263 686 12/15/2025
1.0.262 647 12/14/2025
1.0.261 1,760 12/12/2025
1.0.260 928 12/12/2025
1.0.259 539 12/12/2025
1.0.258 536 12/12/2025
1.0.257 914 12/12/2025
1.0.256 1,248 12/2/2025
1.0.255 1,129 12/2/2025
1.0.254 1,126 12/2/2025
1.0.253 733 11/30/2025
1.0.252 585 11/29/2025
1.0.251 587 11/28/2025
1.0.250 590 11/28/2025
1.0.249 654 11/27/2025
1.0.248 713 11/24/2025
1.0.247 656 11/24/2025
1.0.246 642 11/23/2025
1.0.245 1,171 11/22/2025
1.0.244 1,430 11/20/2025
1.0.243 891 11/18/2025
1.0.242 840 11/18/2025
1.0.241 869 11/13/2025
1.0.240 777 11/10/2025
1.0.239 1,613 11/1/2025
1.0.238 834 10/28/2025
1.0.237 821 10/27/2025
1.0.236 678 10/27/2025
1.0.235 620 10/25/2025
1.0.234 4,242 10/3/2025
1.0.233 2,029 9/28/2025
1.0.232 765 9/25/2025
1.0.231 5,251 9/2/2025
1.0.230 3,168 8/30/2025
1.0.229 822 8/30/2025
1.0.228 1,649 8/19/2025
1.0.227 7,590 7/13/2025
1.0.226 636 7/13/2025
1.0.225 638 7/12/2025
1.0.224 1,882 7/8/2025
1.0.223 1,366 7/4/2025
1.0.222 690 7/2/2025
1.0.221 5,458 6/16/2025
1.0.220 835 6/9/2025
1.0.219 692 6/8/2025
1.0.218 2,318 5/21/2025
1.0.217 846 5/17/2025
1.0.216 2,355 5/12/2025
1.0.215 752 5/12/2025
1.0.214 3,002 4/17/2025
1.0.213 5,705 3/22/2025
1.0.212 720 3/20/2025
1.0.211 653 3/20/2025
1.0.210 681 3/19/2025
1.0.209 5,683 2/26/2025
1.0.208 740 2/26/2025
1.0.207 9,213 2/5/2025
1.0.206 4,585 1/21/2025
1.0.205 3,640 1/14/2025
1.0.204 2,542 1/12/2025
1.0.203 1,270 1/10/2025
1.0.202 4,785 12/27/2024
1.0.201 1,633 11/20/2024
1.0.200 4,125 11/18/2024
1.0.199 2,488 11/7/2024
1.0.198 1,823 10/19/2024
1.0.197 3,775 10/12/2024
1.0.196 4,339 10/5/2024
1.0.195 5,407 9/18/2024
1.0.194 717 9/17/2024
1.0.193 5,013 9/3/2024
1.0.192 739 9/1/2024
1.0.191 14,654 6/12/2024
1.0.190 3,541 5/28/2024
1.0.189 4,308 5/4/2024
1.0.188 2,948 4/23/2024
1.0.187 2,062 4/21/2024
1.0.186 910 4/14/2024
1.0.185 6,203 3/28/2024
1.0.184 856 3/17/2024
1.0.183 4,160 2/23/2024
1.0.182 733 2/23/2024
1.0.181 4,091 2/18/2024
1.0.180 761 2/18/2024
1.0.179 804 2/16/2024
1.0.178 2,835 2/13/2024
1.0.177 2,624 2/8/2024
1.0.176 3,051 2/5/2024
1.0.175 712 2/4/2024
1.0.174 3,169 1/23/2024
1.0.173 761 1/23/2024
1.0.172 2,453 1/12/2024
1.0.171 5,872 1/2/2024
1.0.170 916 12/29/2023
1.0.169 18,923 11/12/2023
1.0.168 1,261 11/10/2023
1.0.167 836 11/10/2023
1.0.166 1,079 11/9/2023
1.0.165 1,867 11/3/2023
1.0.164 815 11/1/2023
1.0.163 917 11/1/2023
1.0.162 26,216 9/8/2023
1.0.161 1,206 9/8/2023
1.0.160 1,408 9/3/2023
1.0.159 1,694 8/21/2023
1.0.158 1,910 8/14/2023
1.0.157 2,065 8/10/2023
1.0.156 41,768 6/29/2023
1.0.155 16,255 5/27/2023
1.0.154 1,373 5/21/2023
1.0.153 1,535 5/19/2023
1.0.152 26,928 5/8/2023
1.0.151 5,886 4/22/2023
1.0.150 1,347 4/21/2023
1.0.149 52,492 4/3/2023
1.0.148 8,389 3/13/2023
1.0.147 20,396 3/6/2023
1.0.146 2,530 2/26/2023
1.0.145 17,224 2/21/2023
1.0.144 1,597 2/20/2023
1.0.143 2,993 2/15/2023
1.0.142 1,612 2/14/2023
1.0.141 34,276 2/9/2023
1.0.140 18,116 2/7/2023
1.0.139 2,209 2/4/2023
1.0.138 22,597 2/2/2023
1.0.137 18,686 1/30/2023
1.0.136 7,505 1/18/2023
1.0.135 46,335 12/30/2022
1.0.134 3,621 12/23/2022
1.0.133 23,005 12/12/2022
1.0.132 25,584 12/4/2022
1.0.131 2,588 12/4/2022
1.0.130 3,333 11/30/2022
1.0.129 2,596 11/29/2022
1.0.128 2,678 11/28/2022
1.0.127 6,940 11/18/2022
1.0.126 29,797 11/11/2022
1.0.125 2,622 11/11/2022
1.0.124 2,609 11/10/2022
1.0.123 2,833 11/5/2022
1.0.122 4,124 11/4/2022
1.0.121 26,718 11/1/2022
1.0.120 27,153 10/16/2022
1.0.119 10,011 9/10/2022
1.0.118 54,230 9/8/2022
1.0.117 3,138 9/8/2022
1.0.116 3,101 9/8/2022
1.0.115 5,464 9/4/2022
1.0.114 94,235 8/24/2022
1.0.113 12,747 8/8/2022
1.0.112 6,509 7/26/2022
1.0.111 3,637 7/26/2022
1.0.110 57,093 7/19/2022
1.0.109 49,071 7/18/2022
1.0.108 8,832 7/8/2022
1.0.107 7,830 6/18/2022
1.0.106 3,578 6/6/2022
1.0.105 101,177 4/30/2022
1.0.104 3,870 4/20/2022
1.0.103 3,952 4/10/2022
1.0.102 3,879 4/7/2022
1.0.101 3,910 4/7/2022
1.0.100 3,986 4/2/2022
1.0.99 15,272 3/29/2022
1.0.98 6,781 3/27/2022
1.0.97 293,945 1/24/2022
1.0.96 166,059 12/29/2021
1.0.95 31,318 12/20/2021
1.0.94 4,121 12/13/2021
1.0.93 31,803 12/7/2021
1.0.92 30,566 12/6/2021
1.0.91 5,703 12/2/2021
1.0.90 32,334 11/29/2021
1.0.89 31,100 11/22/2021
1.0.88 2,427 11/17/2021
1.0.87 32,889 11/13/2021
1.0.86 5,840 11/10/2021
1.0.85 2,590 11/9/2021
1.0.84 65,720 11/5/2021
1.0.83 4,218 11/4/2021
1.0.82 2,465 11/4/2021
1.0.81 2,392 11/3/2021
1.0.80 2,614 10/30/2021
1.0.79 34,102 10/21/2021
1.0.78 3,048 10/17/2021
1.0.77 64,246 10/14/2021
1.0.76 13,828 10/13/2021
1.0.75 2,598 10/12/2021
1.0.74 34,400 10/11/2021
1.0.73 2,464 10/9/2021
1.0.72 37,666 10/7/2021
1.0.71 39,706 10/7/2021
1.0.70 2,528 10/7/2021
1.0.69 2,510 10/6/2021
1.0.68 2,538 9/28/2021
1.0.67 36,367 9/23/2021
1.0.66 4,130 9/10/2021
1.0.65 2,270 9/9/2021
1.0.64 2,194 9/8/2021
1.0.63 2,233 9/8/2021
1.0.62 33,266 9/6/2021
1.0.61 2,431 8/31/2021
1.0.60 624 8/30/2021
1.0.59 32,035 7/31/2021
1.0.58 56,721 7/30/2021
1.0.57 1,363 7/26/2021
1.0.56 84,341 7/5/2021
1.0.55 1,336 7/1/2021
1.0.54 59,423 6/4/2021
1.0.53 85,445 4/26/2021
1.0.52 30,016 4/19/2021
1.0.51 140,014 4/7/2021
1.0.50 29,235 4/3/2021
1.0.49 167,006 3/22/2021
1.0.48 104,724 3/4/2021
1.0.47 30,925 2/26/2021
1.0.46 155,428 2/2/2021
1.0.45 53,843 1/26/2021
1.0.44 52,927 1/24/2021
1.0.43 1,247 1/24/2021
1.0.42 1,402 1/23/2021
1.0.41 54,157 1/20/2021
1.0.40 1,349 1/20/2021
1.0.39 27,862 1/18/2021
1.0.38 1,356 1/18/2021
1.0.37 26,877 1/16/2021
1.0.36 109,110 12/16/2020
1.0.35 54,104 12/14/2020
1.0.34 31,650 12/9/2020
1.0.33 2,167 12/6/2020
1.0.32 1,470 12/2/2020
1.0.31 1,374 12/2/2020
1.0.30 29,352 12/1/2020
1.0.29 154,235 11/12/2020
1.0.29-atestpub 820 11/11/2020
1.0.28 28,916 10/11/2020
1.0.27 105,440 9/9/2020
1.0.26 27,456 9/3/2020
1.0.25 28,012 8/20/2020
1.0.24 79,520 8/9/2020
1.0.23 27,251 7/28/2020
1.0.22 27,213 7/19/2020
1.0.21 52,313 7/6/2020
1.0.20 80,235 6/6/2020
1.0.19 28,454 6/4/2020
1.0.18 54,077 5/29/2020
1.0.17 54,121 5/21/2020
1.0.16 1,598 5/17/2020
1.0.15 51,703 5/12/2020
1.0.14 102,062 5/4/2020
1.0.13 4,466 4/24/2020
1.0.12 6,069 4/22/2020
1.0.11 1,454 4/22/2020
1.0.10 1,516 4/21/2020
1.0.9 28,445 4/18/2020
1.0.8 26,663 4/16/2020
1.0.7 1,435 4/16/2020
1.0.6 22,732 4/15/2020
1.0.5 24,520 4/11/2020
1.0.4 24,237 4/3/2020
1.0.3 1,376 4/1/2020
1.0.2 11,477 3/27/2020
1.0.1 10,442 3/22/2020
1.0.0 3,234 3/22/2020