GameFrameX.Foundation.Encryption
5.0.0
dotnet add package GameFrameX.Foundation.Encryption --version 5.0.0
NuGet\Install-Package GameFrameX.Foundation.Encryption -Version 5.0.0
<PackageReference Include="GameFrameX.Foundation.Encryption" Version="5.0.0" />
<PackageVersion Include="GameFrameX.Foundation.Encryption" Version="5.0.0" />
<PackageReference Include="GameFrameX.Foundation.Encryption" />
paket add GameFrameX.Foundation.Encryption --version 5.0.0
#r "nuget: GameFrameX.Foundation.Encryption, 5.0.0"
#:package GameFrameX.Foundation.Encryption@5.0.0
#addin nuget:?package=GameFrameX.Foundation.Encryption&version=5.0.0
#tool nuget:?package=GameFrameX.Foundation.Encryption&version=5.0.0
<div align="center">
<img src="https://download.alianblank.com/gameframex/gameframex_logo_320.png" alt="GameFrameX Logo" width="160" />
GameFrameX.Foundation
All-in-One Solution for Indie Game Development · Empowering Indie Developers' Dreams
<br />
Documentation · Quick Start · QQ Group: 467608841 / 233840761
<br />
English | 简体中文 | 繁體中文 | 日本語 | 한국어
</div>
Project Overview
GameFrameX.Foundation is a modular collection of .NET 10 class libraries that deliver cross-cutting infrastructure for GameFrameX server projects — covering localization, JSON, options parsing, ORM attributes, extensions, encryption, hashing, utilities, logging, HTTP helpers, response normalization, ORM base entities, and idempotency.
Features
Quick Start
Installation
Install the packages you need:
dotnet add package GameFrameX.Foundation.Extensions
dotnet add package GameFrameX.Foundation.Encryption
dotnet add package GameFrameX.Foundation.Logger
dotnet add package GameFrameX.Foundation.Logger.MongoDB
dotnet add package GameFrameX.Foundation.Logger.GrafanaLoki
Usage Examples
using GameFrameX.Foundation.Extensions;
using GameFrameX.Foundation.Encryption;
using GameFrameX.Foundation.Hash;
// Extension methods
var bytes = "Hello World".ToBytes();
var hex = bytes.ToHexString();
// Encryption
var encrypted = AesHelper.Encrypt(Encoding.UTF8.GetBytes("secret"), key, iv);
var decrypted = AesHelper.Decrypt(encrypted, key, iv);
// Hash
var md5 = Md5Helper.ComputeHash("Hello World");
var sha256 = ShaHelper.ComputeSha256("Hello World");
Architecture
See the full architecture documentation for design principles and dependency graph.
Platform Support
- .NET 8.0 / 9.0 / 10.0
- Supported OS: Windows, macOS, Linux
Dependencies
| Module | Package | Description | Dependencies | Docs |
|---|---|---|---|---|
| Localization | GameFrameX.Foundation.Localization |
Lightweight localization with lazy-loading mechanism | Zero dependencies | Docs |
| JSON | GameFrameX.Foundation.Json |
Unified JSON serialization/deserialization interfaces | Zero dependencies | Docs |
| Options | GameFrameX.Foundation.Options |
Command-line option/configuration builder | Zero dependencies | Docs |
| ORM Attribute | GameFrameX.Foundation.Orm.Attribute |
ORM attribute definitions for audit, cache, soft-delete, tenant, data scope, sensitive masking, tree, import/export | Zero dependencies | Docs |
| Extensions | GameFrameX.Foundation.Extensions |
Core extension methods and collection helpers | → Localization | Docs |
| Encryption | GameFrameX.Foundation.Encryption |
AES, RSA, DSA, SM2/SM4, XOR encryption | → Localization | Docs |
| Hash | GameFrameX.Foundation.Hash |
CRC32/64, MD5, SHA, HMAC, MurmurHash3, xxHash | → Localization | Docs |
| Utility | GameFrameX.Foundation.Utility |
Console, environment, time, Snowflake ID utilities | → Localization | Docs |
| Logger | GameFrameX.Foundation.Logger |
Unified logging with Serilog console and file sinks | → Extensions + JSON | Docs |
| Logger.MongoDB | GameFrameX.Foundation.Logger.MongoDB |
MongoDB logging sink for Logger | → Logger | Docs |
| Logger.GrafanaLoki | GameFrameX.Foundation.Logger.GrafanaLoki |
Grafana Loki logging sink for Logger | → Logger | Docs |
| HTTP Extension | GameFrameX.Foundation.Http.Extension |
HTTP client extension methods | → JSON | Docs |
| HTTP Normalization | GameFrameX.Foundation.Http.Normalization |
Standardized HTTP JSON response structures | → Logger | Docs |
| ORM Entity | GameFrameX.Foundation.Orm.Entity |
ORM entity base classes with enterprise features | → Utility | Docs |
| Idempotency | GameFrameX.Foundation.Idempotency |
Idempotency occupation/replay decisions and universal event envelope | → Utility | Docs |
Documentation & Resources
Community & Support
<img src="https://cdn.jsdelivr.net/npm/devicon@2/icons/linkedin/linkedin-original.svg" height="28" alt="LinkedIn" />
Changelog
See CHANGELOG.md for the version history of GameFrameX.Foundation.
License
See LICENSE.md for license information.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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. |
-
net10.0
- BouncyCastle.Cryptography (>= 2.7.0)
- GameFrameX.Foundation.Localization (>= 5.0.0)
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 |
|---|---|---|
| 5.0.0 | 40 | 10/11/2026 |
| 4.1.1 | 200 | 9/13/2026 |
| 4.1.0 | 106 | 9/12/2026 |
| 4.0.2 | 200 | 8/30/2026 |
| 4.0.1 | 109 | 8/28/2026 |
| 4.0.0 | 161 | 8/13/2026 |
| 3.1.2 | 113 | 8/12/2026 |
| 3.1.1 | 114 | 8/12/2026 |
| 3.1.0 | 108 | 8/12/2026 |
| 3.0.0 | 110 | 8/12/2026 |
| 2.9.1 | 106 | 8/12/2026 |
| 2.9.0 | 133 | 8/12/2026 |
| 2.8.3 | 116 | 8/5/2026 |
| 2.8.2 | 114 | 7/29/2026 |
| 2.8.1 | 114 | 7/29/2026 |
| 2.8.0 | 259 | 7/25/2026 |
| 2.7.0 | 243 | 7/15/2026 |
| 2.6.0 | 137 | 7/13/2026 |
| 2.5.2 | 188 | 7/8/2026 |
| 2.5.1 | 161 | 6/9/2026 |