SanlieHash 1.16.5

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

1. Hash

1.1 Message Digest algorithm

消息摘要算法, 单向加密。

1.1.1 MD2

1989年公布。不推荐使用。

8位运算。

1.1.2 MD4

1990年公布。不推荐使用。

1.1.3 MD5

1991年公布。不推荐使用。

1.1.4 MD6

2008年公布。

完成了单线程、32位运算的实现,但它可以支持多线程、64位运算。

  • HASH 长度分别为 128\256\512;
  • KEY 最大长度为 128;

1.2. Secure Hash Algorithm

安全散列算法

1.2.1 SHA0

1993~1995,已经被SHA1取代,不推荐使用。

1.2.2 SHA1

1995年公布,不推荐使用。

1.2.3 SHA2

2001年公布,SHA224\256\384\512

1.2.4 SHA3

2012年公布, SHA3 224\256\384\512\SHAKE128\SHAKE256

1.3 Other Hashs

1.3.1 RIPEMD

1996年公布;RipeMd,输出分别为128bit、160bit、256bit、320bit。

1.3.2 WHIRLPOOL

2000年公布; 输出256bit。

1.3.3 Tiger

1995年公布;输出192bit,可截断至128bit、160bit。
配置参数:

  • passes: 计算轮数,它决定了额外的计算轮数,因为最基本要进行三轮运算,所以它始终大于3。
1.3.4 Snefru

1990年公布;已被证明原始设计是不安全的。输出分别为128bit、256bit。

1.3.5 Gost

其中GOST94,2004年公布;GOST2012,2013年公布;GOST94\GOST94_CRYPTO,输出为256bit;GOST2012,输出分别为256bit、512bit。

1.3.6 HAVAL

1992年公布;已被证实是不安全的。 输出分别为128bit、160bit、192bit、224bit、256bit。

1.3.7 BLAKE

BLAKE256、BLAKE512、BLAKE2s、BLAKE2b,后续2.0版本增加BLAKE3。

1.3.8 非加密型
1.3.8.1 FNV

2011年公布,输出分别为32bit、64bit。

1.3.8.2 CRC

输出分别为8bit、16bit、32bit、64bit。

1.3.8.3 JOAAT

输出为32bit。

1.3.8.4 ADLER

输出分别为32bit、64bit。

1.3.8.5 MURMUR

输出分别为32bit、128bit。

1.3.8.6 FLETCHER

累加和; 输出为16bit、32bit、64bit。

1.3.8.7 BCC、LRC、CHECKSUM

2. 国密

http://gmssl.org/docs/docindex.html 其中一些加密方式无法实现:

  • SM1, 用于芯片,算法没有公开
  • SM7, 用于IC卡,算法没有公开

2.1 SM2

2010年12月公布。

2.2 SM3

2010年12月公布。

2.3 SM4

属于 对称加密算法

2.4 SM9

2.5 ZUC

3. 对称加密算法

3.t1. 加密方式

  1. ECB
    明文分组
  2. CBC 推荐默认
    明文分组与上一个密文分组(或初始化向量IV)“异或”后的值
  3. CFB
    密文分组(或I初始化向量IV)
  4. OFB
    IV值,IV加密的输出作为下一个加密的输入,以此类推
  5. CTR
    计数器CTR值
  6. XTS
    明文及tweak值

3.1. Rivest Cipher

3.1.1. RC2
3.1.2. RC4
3.1.3. RC5
3.1.4. RC6
3.2 其他 AES、Camellia、CLEFIA、KASUMI、DES

5. 流处理

5.1 Base64 (FastEncode)

public static string Base64Encode(byte[] data)
public static string Base64Encode(string text, Encoding encoding = null)
public static string Base64Decode(string base64text, Encoding encoding = null)
public static void Base64EncodeStream(Stream source, Stream dist)
public static void Base64DecodeStream(Stream source, Stream dist)
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 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 net20 is compatible.  net35 was computed.  net40 was computed.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  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.
  • .NETFramework 2.0

    • No dependencies.
  • .NETStandard 2.0

    • No dependencies.

NuGet packages (7)

Showing the top 5 NuGet packages that depend on SanlieHash:

Package Downloads
tuimg

tuimg image project. tuimg 是一个专注于操作、读取、生成图片 的解决方案。

yacomp

yacomp 专注于压缩数据读写 的解决方案。

wuo

object and text convert

rehot

热使用动态链接库dynamic loading

yunio

Let request web easy.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.16.5 781 8/13/2025
1.16.4 288 8/1/2025
1.16.3 474 7/1/2025
1.16.2 463 6/12/2025
1.16.1 189 5/9/2025
1.16.0 130 12/1/2024
1.15.0 117 11/25/2024
1.1.0 124 10/31/2024
1.0.0 136 10/14/2024