Opaque Chat
Opaque Chat 是一款纯客户端的 Fabric 模组,为 Minecraft 聊天带来了端到端加密。在任何服务器上与你的朋友安全通信,而服务器管理员、控制台或其他玩家都无法理解你聊天内容中的任何一个字。
功能特性
- 端到端加密: 你的消息使用 ECDH (secp256r1) 进行安全的密钥交换,并使用 AES-GCM 进行对称消息加密。
- 安全群聊: 创建具有完美前向保密性和密钥棘轮机制的私有群聊,确保被踢出的成员在数学上被彻底锁定在外。
- 无缝 GUI 集成: Opaque Chat 直接在原版聊天屏幕中构建了一个面板。
- 高度可配置: 通过 Yet Another Config Lib (YACL) 自定义 UI 颜色、布局以及针对特定服务器的聊天冷却时间。
- 仅客户端: 只要服务器允许发送和接收标准聊天消息,Opaque Chat 即可在 任何 服务器上运行。
工作原理
Opaque Chat 会拦截以 !oc_ 为前缀的传入和传出聊天消息。
当你邀请一名玩家时,该模组会在服务器的公开聊天中静默执行密码学握手(!oc_req 和 !oc_key)以交换公钥。一旦建立了共享密钥,你的消息在离开客户端之前就会被加密(!oc_msg)。服务器日志只会看到 base64 编码的字符串,而你和朋友看到的则是干净、格式化的文本。
每个密钥都安全地保存在你的本地配置文件夹中,并在会话之间复用,这意味着你只需要邀请一次玩家!
依赖项
使用方法
打开界面
- 打开标准的 Minecraft 聊天(默认按键为
T)。
- 点击屏幕右下角的 “OC” 按钮以访问 Opaque Chat 界面。
开始安全聊天
- 发送邀请: 在 GUI 中点击玩家名称,并使用 “Send Invite”(或用于私密耳语的 “Invite Secretly (/msg)”),或在聊天中输入
/oc invite <player> [secretly]。
- 接受邀请: 接收方玩家会收到通知。他们可以在聊天中点击
[ACCEPT],使用 GUI “Requests” 标签页中的 “Accept Invite”(或 “Accept Secretly (/msg)”),或在聊天中输入 /oc accept <player> [secretly]。
发送消息
建立安全连接后:
- 在 Opaque Chat GUI 面板中选择联系人,然后在“Secure Message”字段中输入你的消息。
- 或者,使用命令
/oc msg <player> <message>。
命令
Opaque Chat 完全在客户端运行。所有命令均使用 /oc 前缀。
通用与配置
| 命令 |
描述 |
/oc help |
显示游戏内帮助菜单,包含所有可用命令。 |
/oc config |
打开可视化配置 UI(需要 YACL)。 |
/oc reload |
从磁盘重新加载 config.json。 |
/oc delay <ms> |
设置当前服务器的自动数据包之间的延迟,以绕过反垃圾邮件踢出(默认:5000毫秒)。 |
1对1 安全消息传递
| 命令 |
描述 |
/oc invite <player> [secretly] |
发送安全的 ECC 握手请求。添加 true(或使用 /oc invite_secretly)通过耳语发送。 |
/oc invite_secretly <player> |
通过耳语发送秘密的 ECC 握手请求 (!oc_wreq)。 |
/oc accept <player> [secretly] |
接受握手请求。添加 true(或使用 /oc accept_secretly)通过耳语交换密钥。 |
/oc accept_secretly <player> |
通过耳语秘密接受传入的握手请求 (!oc_wkey)。 |
/oc msg <player> <text> |
使用共享密钥加密并发送 1对1 消息。 |
联系人与身份管理
| 命令 |
描述 |
/oc contact add <player> [secretly] |
/oc invite <player> [secretly] 的别名。 |
/oc contact remove <player> |
从已保存的联系人列表中删除一名玩家。 |
/oc contact reload |
从磁盘重新加载 contacts.json。 |
/oc identity reset |
生成新的 ECC 密钥对并增加你的密钥版本。下次你向他们发送消息时,你的联系人会自动修复并更新到你的新密钥。 |
/oc identity reload |
从磁盘重新加载 identity.json。 |
群聊
注意:创建群聊的玩家将被永久指定为 群主。
| 命令 |
描述 |
权限 |
/oc group create <name> <members...> |
生成安全的 AES 密钥,创建群聊,并静默将密钥分发给列出的成员。 |
任何人 |
/oc group invite <name> <player> |
安全地邀请新玩家加入现有群聊,并为所有当前成员自动同步名单。 |
仅限群主 |
/oc group kick <name> <player> |
踢出一名玩家,生成新的 AES 密钥(棘轮版本号),并将新密钥安全地分发给剩余成员,以保证完美前向保密性。 |
仅限群主 |
Opaque Chat
Opaque Chat is a purely client-side Fabric mod that brings end-to-end encryption to Minecraft chat. Communicate securely with your friends on any server without the server owner, console, or other players understanding a single word out of your chat.
Features
- End-to-End Encryption: Your messages are secured using ECDH (secp256r1) for secure key exchange and AES-GCM for symmetric message encryption.
- Secure Group Chats: Create private group chats with Perfect Forward Secrecy and Key Ratcheting to ensure kicked members are mathematically locked out.
- Seamless GUI Integration: Opaque Chat features a panel built directly into the vanilla Chat screen.
- Highly Configurable: Customize UI colors, layouts, and server-specific chat cooldowns via Yet Another Config Lib (YACL).
- Client-Side Only: Opaque Chat works on any server, as long as the server allows standard chat messages to be sent and received.
How It Works
Opaque Chat intercepts incoming and outgoing chat messages prefixed with !oc_.
When you invite a player, the mod performs a silent cryptographic handshake (!oc_req and !oc_key) to exchange public keys over the server's public chat. Once a shared secret is established, your messages are encrypted (!oc_msg) before they ever leave your client. Server logs will only see base64-encoded strings, while you and your friend see clean, formatted text.
Each key is securely saved in your local config folder and is reused between sessions, meaning you only have to invite a player once!
Dependencies
Usage
Opening the Interface
- Open your standard Minecraft chat (
T by default).
- Click the "OC" button in the bottom right corner of the screen to access the Opaque Chat interface.
Starting a Secure Chat
- Send an Invite: Click on a player's name in the GUI and use "Send Invite" (or "Invite Secretly (/msg)" for private whispers), or type
/oc invite <player> [secretly] in chat.
- Accept an Invite: The receiving player will get a notification. They can click
[ACCEPT] in chat, use the GUI "Requests" tab with "Accept Invite" (or "Accept Secretly (/msg)"), or type /oc accept <player> [secretly].
Sending Messages
Once a secure link is established:
- Select the contact in the Opaque Chat GUI panel and type your message into the "Secure Message" field.
- Alternatively, use the command
/oc msg <player> <message>.
Commands
Opaque Chat operates entirely on the client-side. All commands use the /oc prefix.
General & Configuration
| Command |
Description |
/oc help |
Displays the in-game help menu with all available commands. |
/oc config |
Opens the visual configuration UI (Requires YACL). |
/oc reload |
Reloads config.json from your disk. |
/oc delay <ms> |
Sets the delay between automated packets for the current server to bypass anti-spam kicks (Default: 5000ms). |
1-on-1 Secure Messaging
| Command |
Description |
/oc invite <player> [secretly] |
Sends a secure ECC handshake request. Add true (or use /oc invite_secretly) to send via whisper. |
/oc invite_secretly <player> |
Sends a secret ECC handshake request via whisper (!oc_wreq). |
/oc accept <player> [secretly] |
Accepts a handshake request. Add true (or use /oc accept_secretly) to exchange keys via whisper. |
/oc accept_secretly <player> |
Accepts an incoming handshake request secretly via whisper (!oc_wkey). |
/oc msg <player> <text> |
Encrypts and sends a 1-on-1 message using the shared secret. |
Contact & Identity Management
| Command |
Description |
/oc contact add <player> [secretly] |
An alias for /oc invite <player> [secretly]. |
/oc contact remove <player> |
Deletes a player from your saved contacts list. |
/oc contact reload |
Reloads contacts.json from your disk. |
/oc identity reset |
Generates a new ECC keypair and increments your Key Version. Your contacts will automatically heal and update to your new key the next time you message them. |
/oc identity reload |
Reloads identity.json from your disk. |
Group Chats
Note: The player who creates a group is permanently assigned as the Group Owner.
| Command |
Description |
Permissions |
/oc group create <name> <members...> |
Generates a secure AES key, creates the group, and silently distributes the key to the listed members. |
Anyone |
/oc group invite <name> <player> |
Securely invites a new player to an existing group and automatically syncs the roster for all current members. |
Owner Only |
/oc group kick <name> <player> |
Kicks a player, generates a new AES key (ratcheting the version number), and securely distributes the new key to the remaining members to guarantee Perfect Forward Secrecy. |
Owner Only |
评论 0
登录后参与评分
还没有评论,来抢沙发吧