GameFrameX.Foundation.Http.Normalization 1.0.2

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

GameFrameX.Foundation

GameFrameX 的基建库, 提供了一些基础的扩展方法和工具类.

HTTP 消息结构标准化组件 (GameFrameX.Foundation.Http.Normalization)

该组件提供了 HTTP 消息结构标准化的功能, 让消息的格式更加统一.

服务器返回的消息包含 codemessagedata, 但是客户端需要统一的返回格式, 需要进行格式化.所以这个组件提供了格式化的功能. 适用于GameFrameX 的整个生态标准

加密工具库 (GameFrameX.Foundation.Encryption)

该库提供了多种加密算法的实现,包括:

AES 加密 (AesHelper)

提供 AES 对称加密算法的实现:

  • 支持字符串和字节数组的加密/解密
  • 使用 Rijndael 算法作为 AES 标准的实现
  • 提供高安全级别的加密方案

RSA 加密 (RsaHelper)

提供 RSA 非对称加密算法的实现:

  • 支持密钥对生成
  • 支持公钥加密/私钥解密
  • 支持数字签名和验证
  • 支持字符串和字节数组操作

DSA 签名 (DsaHelper)

提供 DSA 数字签名算法的实现:

  • 支持密钥对生成
  • 支持数字签名和验证
  • 支持字符串和字节数组操作

SM2/SM4 加密 (Sm2Helper/Sm4Helper)

提供国密 SM2/SM4 算法的实现:

  • SM2: 非对称加密算法
    • 支持密钥对生成
    • 支持加密/解密操作
  • SM4: 对称加密算法
    • 支持 ECB/CBC 加密模式
    • 支持 JavaScript 兼容模式
    • 支持十六进制密钥

XOR 加密 (XorHelper)

提供异或加密算法的实现:

  • 支持快速加密模式(仅加密前220字节)
  • 支持完整加密模式
  • 支持指定范围加密
  • 内存优化设计,支持原地加密

使用示例

// AES 加密示例
string encrypted = AesHelper.Encrypt("Hello World", "your-key");
string decrypted = AesHelper.Decrypt(encrypted, "your-key");
// RSA 加密示例
var keys = RsaHelper.Make();
string encrypted = RsaHelper.Encrypt(keys["publicKey"], "Hello World");
string decrypted = RsaHelper.Decrypt(keys["privateKey"], encrypted);
// SM4 加密示例
string encrypted = Sm4Helper.EncryptCbc("your-key", "Hello World");
string decrypted = Sm4Helper.DecryptCbc("your-key", encrypted);
Product Compatible and additional computed target framework versions.
.NET 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 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. 
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 GameFrameX.Foundation.Http.Normalization:

Package Downloads
GameFrameX.NetWork.HTTP

GameFrameX.NetWork.HTTP,GameFrameX 框架的基础设施框架库.框架文档主页: https://gameframex.doc.alianblank.com

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.7.1.11 1,370 11/20/2025
1.7.1.10 406 11/19/2025
1.7.1.9 401 11/19/2025
1.7.1.8 437 11/19/2025
1.7.1.7 496 11/4/2025
1.7.1.6 184 11/4/2025
1.7.1.5 221 11/4/2025
1.7.1.4 173 11/4/2025
1.7.1.3 179 11/4/2025
1.7.1.2 180 11/4/2025
1.7.1.1 184 11/4/2025
1.7.1 378 10/23/2025
1.7.0.7 181 10/22/2025
1.7.0.6 170 10/22/2025
1.7.0.5 178 10/22/2025
1.7.0.4 176 10/22/2025
1.7.0.3 172 10/21/2025
1.7.0.2 172 10/21/2025
1.7.0.1 174 10/21/2025
1.6.0 489 10/11/2025
1.5.17 665 9/18/2025
1.5.16 302 9/17/2025
1.5.15 246 8/15/2025
1.5.14 1,059 8/9/2025
1.5.13 221 8/8/2025
1.5.12 282 8/5/2025
1.5.11 242 8/5/2025
1.5.10 240 8/5/2025
1.5.9 201 8/4/2025
1.5.8 204 8/4/2025
1.5.7 195 8/4/2025
1.5.6 78 8/2/2025
1.5.5 83 8/2/2025
1.5.4 79 8/2/2025
1.5.3 80 8/2/2025
1.5.2 924 7/11/2025
1.5.2-dev1 107 8/1/2025
1.5.1 135 7/11/2025
1.5.0 159 7/11/2025
1.4.0 446 6/30/2025
1.3.5 1,041 5/23/2025
1.3.4 177 5/23/2025
1.3.3 286 4/9/2025
1.3.2 1,289 3/20/2025
1.3.1 435 3/12/2025
1.3.0 187 3/12/2025
1.2.2 218 3/11/2025
1.2.1 1,258 2/6/2025
1.2.0 155 2/6/2025
1.1.0 147 2/5/2025
1.0.4 328 1/22/2025
1.0.3 253 1/17/2025
1.0.2 161 1/16/2025
1.0.1 123 1/16/2025
1.0.0 135 1/16/2025