EncryptTools 2.0.1.1

Suggested Alternatives

MiSeal.Core

Additional Details

EncryptTools 2.0.1.1 已停止维护,请迁移至替代包 MiSeal.Core 2.2.1(完整替代,API 兼容,且可解密旧版密文)。
迁移步骤:
① 将 PackageReference 由 EncryptTools 2.0.1.1 改为 MiSeal.Core 2.2.1;
② 代码中 using EncryptTools.Core; 改为 using MiSeal.Core;,其余调用不变。
新版修复了旧版多处严重缺陷(单实例连续加密崩溃、明文超长崩溃、异常输入未捕获异常、Windows 密钥库污染),加密升级为 AES-256-GCM / RSA-2048-OAEP,并新增 SBE 软件绑定加密与口令模式。要求 .NET Core 3.0+ / .NET 5+,不支持 .NET Framework,Framework 项目请暂缓迁移并联系维护者。

dotnet add package EncryptTools --version 2.0.1.1
                    
NuGet\Install-Package EncryptTools -Version 2.0.1.1
                    
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="EncryptTools" Version="2.0.1.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="EncryptTools" Version="2.0.1.1" />
                    
Directory.Packages.props
<PackageReference Include="EncryptTools" />
                    
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 EncryptTools --version 2.0.1.1
                    
#r "nuget: EncryptTools, 2.0.1.1"
                    
#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 EncryptTools@2.0.1.1
                    
#: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=EncryptTools&version=2.0.1.1
                    
Install as a Cake Addin
#tool nuget:?package=EncryptTools&version=2.0.1.1
                    
Install as a Cake Tool

涉密信息加密工具Encrypt Tools V2.0.1.1 (适用全平台)

一、安装部署

1、打开管理Nuget包命令行,输入如下代码:
Install-Package EncryptTools -Version 2.0.1.1
2、安装完成后,在需要用到的地方写上如下代码:
using EncryptTools;  //.Net Framework 4.6+引用
using EncryptTools.Core;  //.Net Core3.1+/.Net 5引用
    
void Main(arg[] param)
{
    Encrypt encrypt = new Encrypt();
    var str = "需要加密的字符串!";
    //获得加密后的字符串
    var encryptedStr = encrypt.Encryption(str);
    Console.WriteLine(encryptedStr);
    //解密加密后的字符串
    var deEncryptStr = encrypt.Decryption(encryptedStr);
    Console.WriteLine(deEncryptStr);
    
}

二、说明:如有任何疑问,请联系作者!

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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 netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
.NET Framework net461 is compatible.  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 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.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.1.1 745 6/4/2022 2.0.1.1 is deprecated because it is no longer maintained and has critical bugs.
2.0.0.1 741 8/8/2021
2.0.0 1,482 8/7/2021
1.0.1.3 890 5/10/2021
1.0.0.3 761 5/2/2021
1.0.0.2 534 4/20/2021

更新日志(2022-06-04):
1、新增“增强”加密级别和扩展对应方法。