AzrngCommon.Security 1.2.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package AzrngCommon.Security --version 1.2.0
                    
NuGet\Install-Package AzrngCommon.Security -Version 1.2.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.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AzrngCommon.Security" Version="1.2.0" />
                    
Directory.Packages.props
<PackageReference Include="AzrngCommon.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 AzrngCommon.Security --version 1.2.0
                    
#r "nuget: AzrngCommon.Security, 1.2.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.
#:package AzrngCommon.Security@1.2.0
                    
#: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=AzrngCommon.Security&version=1.2.0
                    
Install as a Cake Addin
#tool nuget:?package=AzrngCommon.Security&version=1.2.0
                    
Install as a Cake Tool

AzrngCommon.Security

概述

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.2.0
    • 适配.Net10
  • 1.1.2
    • 更新与十六进制互转操作
  • 1.1.1
    • 将扩展方法改为静态方法
  • 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 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 is compatible.  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 is compatible.  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 is compatible.  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 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.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on AzrngCommon.Security:

Package Downloads
StudyUse

学习使用的nuget包

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.2.1 84 2/27/2026
1.2.0 403 11/12/2025
1.1.2 439 9/18/2025
1.1.1 543 4/9/2025
1.1.0 214 2/12/2025
1.0.0 230 11/28/2024
0.0.1-beta7 437 3/28/2024
0.0.1-beta6 431 12/25/2023
0.0.1-beta5 163 12/23/2023
0.0.1-beta4 243 12/10/2023
0.0.1-beta3 225 10/17/2023
0.0.1-beta2 299 9/13/2022
0.0.1-beta1 301 5/20/2022