GameFrameX.Foundation.Encryption
2.4.5
dotnet add package GameFrameX.Foundation.Encryption --version 2.4.5
NuGet\Install-Package GameFrameX.Foundation.Encryption -Version 2.4.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="GameFrameX.Foundation.Encryption" Version="2.4.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="GameFrameX.Foundation.Encryption" Version="2.4.5" />
<PackageReference Include="GameFrameX.Foundation.Encryption" />
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.Encryption --version 2.4.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: GameFrameX.Foundation.Encryption, 2.4.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 GameFrameX.Foundation.Encryption@2.4.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=GameFrameX.Foundation.Encryption&version=2.4.5
#tool nuget:?package=GameFrameX.Foundation.Encryption&version=2.4.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
<div align="center">
GameFrameX.Foundation
All-in-One Solution for Indie Game Development · Empowering Indie Developers' Dreams
📖 Documentation • 🚀 Quick Start • 💬 QQ Group: 870596322
🌐 Language: English | 简体中文 | 繁體中文 | 日本語 | 한국어
</div>
Assembly Overview
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
Basic Usage
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");
Module Index
| 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 | 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, Loki, MongoDB sinks | → Extensions + JSON | 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 |
Architecture
See the full architecture documentation for design principles and dependency graph.
System Requirements
- .NET 8.0 / 9.0 / 10.0
- Supported OS: Windows, macOS, Linux
License
This project is licensed under MIT License + Apache 2.0.
Related Links
| Product | Versions 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 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- BouncyCastle.Cryptography (>= 2.6.2)
- GameFrameX.Foundation.Localization (>= 2.4.5)
-
net8.0
- BouncyCastle.Cryptography (>= 2.6.2)
- GameFrameX.Foundation.Localization (>= 2.4.5)
-
net9.0
- BouncyCastle.Cryptography (>= 2.6.2)
- GameFrameX.Foundation.Localization (>= 2.4.5)
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 |
|---|---|---|
| 2.4.5 | 22 | 5/8/2026 |
| 2.4.4 | 23 | 5/8/2026 |
| 2.4.3 | 33 | 5/7/2026 |
| 2.4.2 | 108 | 4/28/2026 |
| 2.4.1 | 89 | 4/28/2026 |
| 2.2.10 | 142 | 4/2/2026 |
| 2.2.9 | 98 | 4/2/2026 |
| 2.2.8 | 101 | 3/22/2026 |
| 2.2.7 | 98 | 3/20/2026 |
| 2.2.6 | 102 | 3/19/2026 |
| 2.2.5 | 100 | 3/17/2026 |
| 2.2.4 | 108 | 3/17/2026 |
| 2.2.2 | 131 | 2/4/2026 |
| 2.2.1 | 114 | 2/4/2026 |
| 2.1.2 | 117 | 1/28/2026 |
| 2.1.1.2 | 117 | 1/22/2026 |
| 2.1.1.1 | 113 | 1/22/2026 |
Loading failed