Ecng.Security 1.0.230

There is a newer version of this package available.
See the version list below for details.
dotnet add package Ecng.Security --version 1.0.230
                    
NuGet\Install-Package Ecng.Security -Version 1.0.230
                    
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.230" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Ecng.Security" Version="1.0.230" />
                    
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.230
                    
#r "nuget: Ecng.Security, 1.0.230"
                    
#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.230
                    
#: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.230
                    
Install as a Cake Addin
#tool nuget:?package=Ecng.Security&version=1.0.230
                    
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.231 1,060 9/2/2025
1.0.230 1,118 8/30/2025
1.0.229 341 8/30/2025
1.0.228 594 8/19/2025
1.0.227 3,837 7/13/2025
1.0.226 362 7/13/2025
1.0.225 360 7/12/2025
1.0.224 1,064 7/8/2025
1.0.223 776 7/4/2025
1.0.222 405 7/2/2025
1.0.221 3,012 6/16/2025
1.0.220 544 6/9/2025
1.0.219 441 6/8/2025
1.0.218 1,349 5/21/2025
1.0.217 479 5/17/2025
1.0.216 1,378 5/12/2025
1.0.215 449 5/12/2025
1.0.214 1,667 4/17/2025
1.0.213 3,287 3/22/2025
1.0.212 422 3/20/2025
1.0.211 393 3/20/2025
1.0.210 406 3/19/2025
1.0.209 3,442 2/26/2025
1.0.208 458 2/26/2025
1.0.207 5,417 2/5/2025
1.0.206 2,700 1/21/2025
1.0.205 2,124 1/14/2025
1.0.204 1,398 1/12/2025
1.0.203 740 1/10/2025
1.0.202 3,166 12/27/2024
1.0.201 1,194 11/20/2024
1.0.200 2,851 11/18/2024
1.0.199 1,576 11/7/2024
1.0.198 1,179 10/19/2024
1.0.197 2,498 10/12/2024
1.0.196 2,692 10/5/2024
1.0.195 3,363 9/18/2024
1.0.194 481 9/17/2024
1.0.193 3,296 9/3/2024
1.0.192 502 9/1/2024
1.0.191 9,611 6/12/2024
1.0.190 2,404 5/28/2024
1.0.189 2,849 5/4/2024
1.0.188 1,933 4/23/2024
1.0.187 1,455 4/21/2024
1.0.186 651 4/14/2024
1.0.185 4,225 3/28/2024
1.0.184 630 3/17/2024
1.0.183 3,062 2/23/2024
1.0.182 512 2/23/2024
1.0.181 3,025 2/18/2024
1.0.180 536 2/18/2024
1.0.179 541 2/16/2024
1.0.178 2,091 2/13/2024
1.0.177 1,997 2/8/2024
1.0.176 2,277 2/5/2024
1.0.175 523 2/4/2024
1.0.174 2,488 1/23/2024
1.0.173 533 1/23/2024
1.0.172 1,851 1/12/2024
1.0.171 4,475 1/2/2024
1.0.170 652 12/29/2023
1.0.169 14,460 11/12/2023
1.0.168 886 11/10/2023
1.0.167 577 11/10/2023
1.0.166 747 11/9/2023
1.0.165 1,270 11/3/2023
1.0.164 579 11/1/2023
1.0.163 644 11/1/2023
1.0.162 23,696 9/8/2023
1.0.161 865 9/8/2023
1.0.160 1,003 9/3/2023
1.0.159 1,197 8/21/2023
1.0.158 1,408 8/14/2023
1.0.157 1,489 8/10/2023
1.0.156 38,993 6/29/2023
1.0.155 14,661 5/27/2023
1.0.154 1,058 5/21/2023
1.0.153 1,201 5/19/2023
1.0.152 24,669 5/8/2023
1.0.151 4,734 4/22/2023
1.0.150 1,092 4/21/2023
1.0.149 49,609 4/3/2023
1.0.148 7,127 3/13/2023
1.0.147 19,074 3/6/2023
1.0.146 2,257 2/26/2023
1.0.145 16,450 2/21/2023
1.0.144 1,398 2/20/2023
1.0.143 2,638 2/15/2023
1.0.142 1,407 2/14/2023
1.0.141 32,810 2/9/2023
1.0.140 17,363 2/7/2023
1.0.139 1,955 2/4/2023
1.0.138 21,453 2/2/2023
1.0.137 17,943 1/30/2023
1.0.136 6,708 1/18/2023
1.0.135 44,004 12/30/2022
1.0.134 3,217 12/23/2022
1.0.133 21,965 12/12/2022
1.0.132 24,374 12/4/2022
1.0.131 2,343 12/4/2022
1.0.130 3,030 11/30/2022
1.0.129 2,344 11/29/2022
1.0.128 2,437 11/28/2022
1.0.127 6,346 11/18/2022
1.0.126 28,562 11/11/2022
1.0.125 2,411 11/11/2022
1.0.124 2,399 11/10/2022
1.0.123 2,616 11/5/2022
1.0.122 3,800 11/4/2022
1.0.121 25,692 11/1/2022
1.0.120 26,390 10/16/2022
1.0.119 9,444 9/10/2022
1.0.118 52,936 9/8/2022
1.0.117 2,934 9/8/2022
1.0.116 2,890 9/8/2022
1.0.115 5,123 9/4/2022
1.0.114 92,463 8/24/2022
1.0.113 11,943 8/8/2022
1.0.112 6,120 7/26/2022
1.0.111 3,411 7/26/2022
1.0.110 55,725 7/19/2022
1.0.109 48,149 7/18/2022
1.0.108 8,313 7/8/2022
1.0.107 7,358 6/18/2022
1.0.106 3,365 6/6/2022
1.0.105 99,168 4/30/2022
1.0.104 3,638 4/20/2022
1.0.103 3,749 4/10/2022
1.0.102 3,677 4/7/2022
1.0.101 3,718 4/7/2022
1.0.100 3,763 4/2/2022
1.0.99 14,709 3/29/2022
1.0.98 6,469 3/27/2022
1.0.97 287,071 1/24/2022
1.0.96 162,779 12/29/2021
1.0.95 30,298 12/20/2021
1.0.94 3,785 12/13/2021
1.0.93 30,699 12/7/2021
1.0.92 29,653 12/6/2021
1.0.91 5,221 12/2/2021
1.0.90 31,242 11/29/2021
1.0.89 30,080 11/22/2021
1.0.88 2,228 11/17/2021
1.0.87 31,811 11/13/2021
1.0.86 5,353 11/10/2021
1.0.85 2,377 11/9/2021
1.0.84 63,869 11/5/2021
1.0.83 3,871 11/4/2021
1.0.82 2,258 11/4/2021
1.0.81 2,182 11/3/2021
1.0.80 2,387 10/30/2021
1.0.79 33,232 10/21/2021
1.0.78 2,799 10/17/2021
1.0.77 62,700 10/14/2021
1.0.76 13,134 10/13/2021
1.0.75 2,369 10/12/2021
1.0.74 33,449 10/11/2021
1.0.73 2,250 10/9/2021
1.0.72 36,753 10/7/2021
1.0.71 38,485 10/7/2021
1.0.70 2,302 10/7/2021
1.0.69 2,302 10/6/2021
1.0.68 2,316 9/28/2021
1.0.67 35,313 9/23/2021
1.0.66 3,782 9/10/2021
1.0.65 2,073 9/9/2021
1.0.64 2,018 9/8/2021
1.0.63 2,035 9/8/2021
1.0.62 32,375 9/6/2021
1.0.61 2,270 8/31/2021
1.0.60 550 8/30/2021
1.0.59 31,280 7/31/2021
1.0.58 55,492 7/30/2021
1.0.57 1,240 7/26/2021
1.0.56 82,544 7/5/2021
1.0.55 1,214 7/1/2021
1.0.54 58,170 6/4/2021
1.0.53 83,639 4/26/2021
1.0.52 29,343 4/19/2021
1.0.51 136,940 4/7/2021
1.0.50 28,563 4/3/2021
1.0.49 163,492 3/22/2021
1.0.48 102,426 3/4/2021
1.0.47 30,111 2/26/2021
1.0.46 152,059 2/2/2021
1.0.45 52,673 1/26/2021
1.0.44 51,674 1/24/2021
1.0.43 1,118 1/24/2021
1.0.42 1,271 1/23/2021
1.0.41 52,900 1/20/2021
1.0.40 1,221 1/20/2021
1.0.39 27,211 1/18/2021
1.0.38 1,253 1/18/2021
1.0.37 26,222 1/16/2021
1.0.36 106,418 12/16/2020
1.0.35 52,604 12/14/2020
1.0.34 30,635 12/9/2020
1.0.33 2,009 12/6/2020
1.0.32 1,353 12/2/2020
1.0.31 1,271 12/2/2020
1.0.30 28,468 12/1/2020
1.0.29 149,783 11/12/2020
1.0.29-atestpub 707 11/11/2020
1.0.28 28,218 10/11/2020
1.0.27 103,084 9/9/2020
1.0.26 26,782 9/3/2020
1.0.25 27,381 8/20/2020
1.0.24 77,768 8/9/2020
1.0.23 26,573 7/28/2020
1.0.22 26,533 7/19/2020
1.0.21 51,126 7/6/2020
1.0.20 78,614 6/6/2020
1.0.19 27,795 6/4/2020
1.0.18 52,914 5/29/2020
1.0.17 52,934 5/21/2020
1.0.16 1,481 5/17/2020
1.0.15 50,655 5/12/2020
1.0.14 99,968 5/4/2020
1.0.13 4,228 4/24/2020
1.0.12 5,787 4/22/2020
1.0.11 1,326 4/22/2020
1.0.10 1,405 4/21/2020
1.0.9 27,818 4/18/2020
1.0.8 26,065 4/16/2020
1.0.7 1,315 4/16/2020
1.0.6 22,191 4/15/2020
1.0.5 23,937 4/11/2020
1.0.4 23,625 4/3/2020
1.0.3 1,264 4/1/2020
1.0.2 10,863 3/27/2020
1.0.1 9,826 3/22/2020
1.0.0 2,929 3/22/2020