Skip to main content

f8-tools-encryption-compression-zip-workflow

Use when working with Encryption/Compression/Zip tools — AES encryption, data compression, and ZIP archive management in F8Framework.

跳到安装

来源信息

仓库
TippingGame/F8Framework
最近来源活动
2026年4月1日 11:00
检测到的 SKILL.md 语言
英语
星标
884
分支
141

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
2 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
f8-tools-encryption-compression-zip-workflow
description
Use when working with Encryption/Compression/Zip tools — AES encryption, data compression, and ZIP archive management in F8Framework.
# Encryption/Compression/Zip Tools Workflow ## Use this skill when - The task involves data encryption (AES), compression, or ZIP operations. - The user needs to protect data, compress assets, or handle ZIP archives. ## Path resolution 1. Source files: - Assets/F8Framework/Runtime/Utility/Encryption.cs (~21KB) - Assets/F8Framework/Runtime/Utility/Compression.cs (~6KB) - Assets/F8Framework/Runtime/Utility/ZipHelper.cs (~12KB) ## Sources of truth - Source files: Encryption.cs, Compression.cs, ZipHelper.cs in Runtime/Utility - Third-party: ICSharpCode.SharpZipLib (built-in) ## Key capabilities ### Encryption (Encryption.cs) - `OptimizedAES` — AES-256 encryption/decryption - Key and IV management - Random IV generation (null IV = random) - Used by StorageManager for local data encryption - Used by AssetManager for AB encryption ```csharp // Example: Create encryptor var aes = new Util.OptimizedAES(key: "AES_Key", iv: null); byte[] encrypted = aes.Encrypt(plainBytes); byte[] decrypted = aes.Decrypt(encrypted); ``` ### Compression (Compression.cs) - Data compression/decompression - GZip format support - Used for reducing data transmission size ### Zip (ZipHelper.cs) - ZIP archive creation and extraction - File-level ZIP operations - Used by SyncStreamingAssetsLoader for Android StreamingAssets access - Based on ICSharpCode.SharpZipLib ## Workflow 1. For encryption: create `OptimizedAES` instance with key. 2. For compression: use Compression class static methods. 3. For ZIP: use ZipHelper for archive operations. 4. Storage module uses encryption automatically when configured. 5. No module initialization needed — pure utility classes. ## Common error handling | Error | Cause | Solution | |-------|-------|----------| | Decryption fails | Key mismatch | Ensure same key across encrypt/decrypt | | ZIP extraction fails | Corrupt archive | Verify ZIP integrity before extraction | | Compression ratio poor | Already compressed data | Check if data is already compressed | ## Output checklist - Encryption/compression/ZIP method selected. - Keys and parameters configured. - Error handling for crypto/IO failures.
在 GitHub 查看