/enableencryption
< Commands
This feature is exclusive to Bedrock Edition and Minecraft Education.
/enableencryption| Visibility |
Hidden |
|---|---|
| Permission level required |
0 |
| Restrictions |
Cheat only |
{
"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 Option 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 |