Ecng.Security 1.0.259

There is a newer version of this package available.
See the version list below for details.
dotnet add package Ecng.Security --version 1.0.259
                    
NuGet\Install-Package Ecng.Security -Version 1.0.259
                    
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.259" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Ecng.Security" Version="1.0.259" />
                    
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.259
                    
#r "nuget: Ecng.Security, 1.0.259"
                    
#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.259
                    
#: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.259
                    
Install as a Cake Addin
#tool nuget:?package=Ecng.Security&version=1.0.259
                    
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 is compatible.  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.275 44 12/26/2025
1.0.274 38 12/26/2025
1.0.273 42 12/26/2025
1.0.272 51 12/26/2025
1.0.271 127 12/25/2025
1.0.270 146 12/25/2025
1.0.269 756 12/22/2025
1.0.268 635 12/21/2025
1.0.267 670 12/19/2025
1.0.266 665 12/19/2025
1.0.265 858 12/17/2025
1.0.264 923 12/15/2025
1.0.263 683 12/15/2025
1.0.262 642 12/14/2025
1.0.261 1,753 12/12/2025
1.0.260 925 12/12/2025
1.0.259 534 12/12/2025
1.0.258 533 12/12/2025
1.0.257 911 12/12/2025
1.0.256 1,243 12/2/2025
1.0.255 1,125 12/2/2025
1.0.254 1,120 12/2/2025
1.0.253 729 11/30/2025
1.0.252 578 11/29/2025
1.0.251 583 11/28/2025
1.0.250 583 11/28/2025
1.0.249 650 11/27/2025
1.0.248 706 11/24/2025
1.0.247 649 11/24/2025
1.0.246 637 11/23/2025
1.0.245 1,165 11/22/2025
1.0.244 1,415 11/20/2025
1.0.243 886 11/18/2025
1.0.242 834 11/18/2025
1.0.241 863 11/13/2025
1.0.240 761 11/10/2025
1.0.239 1,608 11/1/2025
1.0.238 828 10/28/2025
1.0.237 815 10/27/2025
1.0.236 672 10/27/2025
1.0.235 615 10/25/2025
1.0.234 4,235 10/3/2025
1.0.233 2,023 9/28/2025
1.0.232 760 9/25/2025
1.0.231 5,188 9/2/2025
1.0.230 3,162 8/30/2025
1.0.229 818 8/30/2025
1.0.228 1,645 8/19/2025
1.0.227 7,582 7/13/2025
1.0.226 633 7/13/2025
1.0.225 633 7/12/2025
1.0.224 1,878 7/8/2025
1.0.223 1,355 7/4/2025
1.0.222 686 7/2/2025
1.0.221 5,454 6/16/2025
1.0.220 830 6/9/2025
1.0.219 688 6/8/2025
1.0.218 2,313 5/21/2025
1.0.217 842 5/17/2025
1.0.216 2,352 5/12/2025
1.0.215 747 5/12/2025
1.0.214 2,997 4/17/2025
1.0.213 5,696 3/22/2025
1.0.212 714 3/20/2025
1.0.211 647 3/20/2025
1.0.210 676 3/19/2025
1.0.209 5,671 2/26/2025
1.0.208 735 2/26/2025
1.0.207 9,208 2/5/2025
1.0.206 4,577 1/21/2025
1.0.205 3,633 1/14/2025
1.0.204 2,538 1/12/2025
1.0.203 1,265 1/10/2025
1.0.202 4,774 12/27/2024
1.0.201 1,629 11/20/2024
1.0.200 4,121 11/18/2024
1.0.199 2,483 11/7/2024
1.0.198 1,818 10/19/2024
1.0.197 3,768 10/12/2024
1.0.196 4,333 10/5/2024
1.0.195 5,403 9/18/2024
1.0.194 711 9/17/2024
1.0.193 5,008 9/3/2024
1.0.192 733 9/1/2024
1.0.191 14,647 6/12/2024
1.0.190 3,537 5/28/2024
1.0.189 4,302 5/4/2024
1.0.188 2,943 4/23/2024
1.0.187 2,059 4/21/2024
1.0.186 905 4/14/2024
1.0.185 6,197 3/28/2024
1.0.184 852 3/17/2024
1.0.183 4,155 2/23/2024
1.0.182 725 2/23/2024
1.0.181 4,082 2/18/2024
1.0.180 755 2/18/2024
1.0.179 797 2/16/2024
1.0.178 2,830 2/13/2024
1.0.177 2,620 2/8/2024
1.0.176 3,038 2/5/2024
1.0.175 708 2/4/2024
1.0.174 3,165 1/23/2024
1.0.173 755 1/23/2024
1.0.172 2,448 1/12/2024
1.0.171 5,869 1/2/2024
1.0.170 910 12/29/2023
1.0.169 18,915 11/12/2023
1.0.168 1,259 11/10/2023
1.0.167 832 11/10/2023
1.0.166 1,077 11/9/2023
1.0.165 1,864 11/3/2023
1.0.164 811 11/1/2023
1.0.163 914 11/1/2023
1.0.162 26,211 9/8/2023
1.0.161 1,203 9/8/2023
1.0.160 1,407 9/3/2023
1.0.159 1,691 8/21/2023
1.0.158 1,908 8/14/2023
1.0.157 2,063 8/10/2023
1.0.156 41,755 6/29/2023
1.0.155 16,250 5/27/2023
1.0.154 1,370 5/21/2023
1.0.153 1,532 5/19/2023
1.0.152 26,925 5/8/2023
1.0.151 5,884 4/22/2023
1.0.150 1,345 4/21/2023
1.0.149 52,485 4/3/2023
1.0.148 8,387 3/13/2023
1.0.147 20,394 3/6/2023
1.0.146 2,526 2/26/2023
1.0.145 17,222 2/21/2023
1.0.144 1,592 2/20/2023
1.0.143 2,990 2/15/2023
1.0.142 1,609 2/14/2023
1.0.141 34,270 2/9/2023
1.0.140 18,112 2/7/2023
1.0.139 2,208 2/4/2023
1.0.138 22,595 2/2/2023
1.0.137 18,685 1/30/2023
1.0.136 7,501 1/18/2023
1.0.135 46,330 12/30/2022
1.0.134 3,618 12/23/2022
1.0.133 23,001 12/12/2022
1.0.132 25,582 12/4/2022
1.0.131 2,585 12/4/2022
1.0.130 3,330 11/30/2022
1.0.129 2,594 11/29/2022
1.0.128 2,676 11/28/2022
1.0.127 6,938 11/18/2022
1.0.126 29,794 11/11/2022
1.0.125 2,618 11/11/2022
1.0.124 2,605 11/10/2022
1.0.123 2,829 11/5/2022
1.0.122 4,122 11/4/2022
1.0.121 26,717 11/1/2022
1.0.120 27,151 10/16/2022
1.0.119 10,008 9/10/2022
1.0.118 54,226 9/8/2022
1.0.117 3,135 9/8/2022
1.0.116 3,099 9/8/2022
1.0.115 5,463 9/4/2022
1.0.114 94,230 8/24/2022
1.0.113 12,744 8/8/2022
1.0.112 6,506 7/26/2022
1.0.111 3,635 7/26/2022
1.0.110 57,088 7/19/2022
1.0.109 49,067 7/18/2022
1.0.108 8,830 7/8/2022
1.0.107 7,825 6/18/2022
1.0.106 3,573 6/6/2022
1.0.105 101,174 4/30/2022
1.0.104 3,867 4/20/2022
1.0.103 3,948 4/10/2022
1.0.102 3,873 4/7/2022
1.0.101 3,907 4/7/2022
1.0.100 3,979 4/2/2022
1.0.99 15,267 3/29/2022
1.0.98 6,778 3/27/2022
1.0.97 293,926 1/24/2022
1.0.96 166,055 12/29/2021
1.0.95 31,315 12/20/2021
1.0.94 4,114 12/13/2021
1.0.93 31,800 12/7/2021
1.0.92 30,562 12/6/2021
1.0.91 5,699 12/2/2021
1.0.90 32,329 11/29/2021
1.0.89 31,095 11/22/2021
1.0.88 2,424 11/17/2021
1.0.87 32,882 11/13/2021
1.0.86 5,837 11/10/2021
1.0.85 2,586 11/9/2021
1.0.84 65,716 11/5/2021
1.0.83 4,213 11/4/2021
1.0.82 2,461 11/4/2021
1.0.81 2,388 11/3/2021
1.0.80 2,610 10/30/2021
1.0.79 34,097 10/21/2021
1.0.78 3,043 10/17/2021
1.0.77 64,242 10/14/2021
1.0.76 13,826 10/13/2021
1.0.75 2,593 10/12/2021
1.0.74 34,395 10/11/2021
1.0.73 2,461 10/9/2021
1.0.72 37,662 10/7/2021
1.0.71 39,703 10/7/2021
1.0.70 2,525 10/7/2021
1.0.69 2,506 10/6/2021
1.0.68 2,535 9/28/2021
1.0.67 36,363 9/23/2021
1.0.66 4,125 9/10/2021
1.0.65 2,267 9/9/2021
1.0.64 2,188 9/8/2021
1.0.63 2,228 9/8/2021
1.0.62 33,262 9/6/2021
1.0.61 2,427 8/31/2021
1.0.60 621 8/30/2021
1.0.59 32,031 7/31/2021
1.0.58 56,719 7/30/2021
1.0.57 1,359 7/26/2021
1.0.56 84,337 7/5/2021
1.0.55 1,333 7/1/2021
1.0.54 59,409 6/4/2021
1.0.53 85,440 4/26/2021
1.0.52 30,011 4/19/2021
1.0.51 140,009 4/7/2021
1.0.50 29,231 4/3/2021
1.0.49 167,002 3/22/2021
1.0.48 104,708 3/4/2021
1.0.47 30,909 2/26/2021
1.0.46 155,423 2/2/2021
1.0.45 53,839 1/26/2021
1.0.44 52,924 1/24/2021
1.0.43 1,244 1/24/2021
1.0.42 1,396 1/23/2021
1.0.41 54,155 1/20/2021
1.0.40 1,344 1/20/2021
1.0.39 27,857 1/18/2021
1.0.38 1,354 1/18/2021
1.0.37 26,873 1/16/2021
1.0.36 109,097 12/16/2020
1.0.35 54,096 12/14/2020
1.0.34 31,647 12/9/2020
1.0.33 2,162 12/6/2020
1.0.32 1,467 12/2/2020
1.0.31 1,371 12/2/2020
1.0.30 29,349 12/1/2020
1.0.29 154,231 11/12/2020
1.0.29-atestpub 816 11/11/2020
1.0.28 28,914 10/11/2020
1.0.27 105,437 9/9/2020
1.0.26 27,452 9/3/2020
1.0.25 28,009 8/20/2020
1.0.24 79,516 8/9/2020
1.0.23 27,247 7/28/2020
1.0.22 27,209 7/19/2020
1.0.21 52,308 7/6/2020
1.0.20 80,214 6/6/2020
1.0.19 28,449 6/4/2020
1.0.18 54,056 5/29/2020
1.0.17 54,116 5/21/2020
1.0.16 1,594 5/17/2020
1.0.15 51,690 5/12/2020
1.0.14 102,059 5/4/2020
1.0.13 4,462 4/24/2020
1.0.12 6,066 4/22/2020
1.0.11 1,451 4/22/2020
1.0.10 1,513 4/21/2020
1.0.9 28,442 4/18/2020
1.0.8 26,661 4/16/2020
1.0.7 1,433 4/16/2020
1.0.6 22,728 4/15/2020
1.0.5 24,517 4/11/2020
1.0.4 24,235 4/3/2020
1.0.3 1,373 4/1/2020
1.0.2 11,474 3/27/2020
1.0.1 10,435 3/22/2020
1.0.0 3,228 3/22/2020