Commands/enableencryption
Minecraft Wiki article. Categories: Bedrock_Edition, Minecraft_Education, Commands
📌 Mirrored from Minecraft Wiki
This article is reproduced from Commands/enableencryption on the Minecraft Wiki. Mirrored from revision 2984542. It is licensed CC BY-NC-SA 3.0 by the Minecraft Wiki contributors — not under the Codex’s CC BY-SA 4.0, and it may not be used commercially. Edits belong upstream, not here.
On this page
This feature is exclusive to Bedrock Edition and Minecraft Education.
/enableencryption{
"title": "<code>/enableencryption</code>",
"rows": [
{
"field": "Hidden",
"label": "Visibility"
},
{
"field": "0",
"label": "(link to Permission level article, displayed as Permission level<br>required)"
},
{
"field": "(link to Cheat article, displayed as Cheat) only<br>",
"label": "(link to Commands#Restrictions article, displayed as Restrictions)"
}
],
"invimages": [],
"images": []
}
Enable encryption for WebSocket connections.
Usage
Allowing only the WebSocket side connected by the player to execute.
If the player has the encrypted WebSocket option turned on, the connected WebSocket server must execute this command.
Syntax
enableencryption <publicKey: string> <salt: string> [ciper_mode: EncryptionCommandCipher]
Arguments
publicKey: string: basic_string
- Specifies the public key to be used for WebSocket connections.
salt: string: basic_string
- Used for interference.
ciper_mode: EncryptionCommandCipher: enum
- Specifies an encrypton cipher. Must be one of:
cfbcfb128cfb8
Result
| Command | Trigger | Bedrock Edition |
|---|---|---|
| Any | The command is incomplete, or any argument is not specified correctly. | Unparseable |
Bad publicKey: string given. | Failed | |
| Otherwise | Successful |
Navigation
Sources
- Commands/enableencryption — Minecraft Wiki, CC BY-NC-SA 3.0, revision 2984542.