AzrngCommon.Security
1.1.0
dotnet add package AzrngCommon.Security --version 1.1.0
NuGet\Install-Package AzrngCommon.Security -Version 1.1.0
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="AzrngCommon.Security" Version="1.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AzrngCommon.Security --version 1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: AzrngCommon.Security, 1.1.0"
#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.
// Install AzrngCommon.Security as a Cake Addin #addin nuget:?package=AzrngCommon.Security&version=1.1.0 // Install AzrngCommon.Security as a Cake Tool #tool nuget:?package=AzrngCommon.Security&version=1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
AzrngCommon.Security
概述
该包封装了常见的加密公共类
使用
MD5哈希算法:Md5Helper
//字符串md5哈希算法
string GetMd5Hash(this string str)
//文件获取md5
string GetFileMd5Hash(string path)
Sha哈希算法:ShaHelper
//获取字符串sha1值
string GetSHA1Hash(this string str)
//获取字符串sha256值
string GetSHA256Hash(this string str)
//获取字符串sha512值
string GetSHA512Hash(this string str)
Des加密算法:DesHelper
Rsa非对称加密算法:RsaHelper
Sm2非对称加密算法:Sm2Helper
Sm3哈希算法:Sm3Helper
Sm4对称加密算法:Sm4Helper
更新记录
1.1.0
- 升级依赖包
- 补充文档
1.0.0
- 升级依赖包
0.0.1-beta7
- 对AES加密算法优化
0.0.1-beta6
- 替换依赖包BouncyCastle.NetCore为BouncyCastle.Cryptography,且将里面的一些源码操作改为使用包的方法,性能更好
0.0.1-beta5
- 增加SHA的HMAC算法
0.0.1-beta4
- 增加sm3、rsa等示例,增加单元测试
0.0.1-beta3
- 支持MD5、SHA等、DES、AES、RSA等
0.0.1-beta2
- fix处理md5加密将16位和32位弄混问题
0.0.1-beta1
- 从common里面移出来一些方法
Product | Versions 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. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
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.
-
.NETStandard 2.1
- BouncyCastle.Cryptography (>= 2.5.1)
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 |
---|---|---|
1.1.0 | 66 | 2/12/2025 |
1.0.0 | 118 | 11/28/2024 |
0.0.1-beta7 | 355 | 3/28/2024 |
0.0.1-beta6 | 349 | 12/25/2023 |
0.0.1-beta5 | 99 | 12/23/2023 |
0.0.1-beta4 | 174 | 12/10/2023 |
0.0.1-beta3 | 148 | 10/17/2023 |
0.0.1-beta2 | 153 | 9/13/2022 |
0.0.1-beta1 | 157 | 5/20/2022 |