Show original
Enjoyed this article?
Use "Request tipping" to ask the author to set up tip receiving.

AI translation
If you're a developer, you've probably encountered a situation where you think, "I'm reluctant to show game configuration files, save data, or communication content as-is, but it doesn't seem worth implementing heavy-duty encryption..." At times like that, an "just right" obfuscation and data protection module...
Enjoyed this article?
Use "Request tipping" to ask the author to set up tip receiving.
As a developer, you've probably encountered a situation like this at least once: "I'm reluctant to show game configuration files, save data, or even minor communication content as-is, but it doesn't seem worth implementing heavy-duty encryption either......"
In such cases, I created a custom obfuscation and data protection module that's "just right."
Repository (GitHub): https://github.com/BLUE000/TransCipher-Dist.git
This "TransCipher" is not a newly developed encryption algorithm. It's an "obfuscation framework" that combines existing trusted methods (AES-GCM, Base64, byte reversal, percent encoding, etc.) like puzzle pieces.
Deterministically generates transformation recipes (instruction manuals) from secret keys
This means that even if the algorithm is exposed, without knowing the "key," the analysis cost to determine the order in which data was processed is significantly increased.
Since the same logic is implemented in both C++ (DLL/CLI) and PHP, operations like obfuscating in an app and decrypting on the server are possible.
Since it employs AES-GCM internally, a certain level of strength is ensured, but it is not intended to protect data like personal information or payment information where "leakage is absolutely unacceptable."
Rather, it's designed for situations like:
The data format looks like this:

This software is provided as-is. The author assumes no responsibility for any damages arising from the use of this software.
Source code is not public, but use through public APIs is not a problem.
※The following is also noted on GitHub, but was added later.
When incorporating this software into your own application and distributing it, please include copyright attribution in one of the following formats in your application's "About" section, "License List," etc.
Attribution Example 1 (Simple):
Includes TransCipher, Copyright (c) 2026 BLUE000.
Attribution Example 2 (As a Third-Party License Item):
This software uses TransCipher library.
Copyright (c) 2026 BLUE000.
※ Please ensure that the copyright holder of the entire application (you) and the copyright holder of the library (BLUE000) are clearly distinguished and not confused.
As of 5/18, expressions have been consistently obfuscated to fully comply with and avoid violating FIPS/NIST standards and export regulations.
It remains treated as obfuscation.
開発者の方なら一度は、「ゲームの設定ファイルやセーブデータ、あるいはちょっとした通信内容を、そのまま見せるのは抵抗があるけれど、ガチガチの重い暗号化を組み込むほどでもない……」という場面に遭遇したことがあるのではないでしょうか。
そんな時に「ちょうどいい」難読化・データ保護モジュールを自作してみました。
リポジトリ (GitHub): https://github.com/BLUE000/TransCipher-Dist.git
この「TransCipher」は、新しい暗号化アルゴリズムを開発したものではありません。 既存の信頼された方式(AES-GCM、Base64、バイト反転、パーセントエンコーディング等)をパズルのように組み合わせる、「難読化フレームワーク」 です。
秘密鍵から変換レシピ(手順書)を決定論的に生成
これにより、アルゴリズムがバレても「鍵」がわからなければ、どのような順番でデータが加工されたかの解析コストを大幅に引き上げできます。
C++(DLL/CLI)と PHP の両方で同じロジックを実装したので、アプリで難読化してサーバーで復号といった運用もできます。
内部で AES-GCM を採用しているため一定の強度は確保していますが、個人情報や決済情報のような「万が一にも漏洩が許されないデータ」の保護を目的としたものではありません。
あくまで:
といった、状況を想定しています。
データフォーマットはこんな感じです。
## 免責事項
このソフトウェアは現状有姿で提供されます。作者はこのソフトウェアの使用によって生じた、いかなる損害についても責任を負いません。
ソースコードは非公開ですが、公開APIを通じた利用は問題ありません。
※以下、GitHubにも記載がありますが、後から追記しました。
本ソフトウェアを自身のアプリケーションに組み込んで配布する場合、アプリケーション内の「バージョン情報」や「ライセンス一覧」等に、以下のいずれかの形式で権利表記を行ってください。
表記例 1(シンプル):
Includes TransCipher, Copyright (c) 2026 BLUE000.
表記例 2(サードパーティ・ライセンス項目として):
This software uses TransCipher library.
Copyright (c) 2026 BLUE000.
※ アプリケーション全体の著作権者(あなた)と、ライブラリの著作権者(BLUE000)が区別できるよう、混同を避ける形で記載してください。
5/18時点で
FIPS/NIST規格、輸出規制に完全準拠・抵触回避するために表現を難読化に一貫させました。
あくまで難読化という扱いになります。