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.

This feature is exclusive to Bedrock Edition and Minecraft Education.
 
/enableencryption

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:
  • cfb
  • cfb128
  • cfb8

Result

CommandTriggerBedrock Edition
AnyThe command is incomplete, or any argument is not specified correctly. Unparseable
Bad publicKey: string given. Failed
OtherwiseSuccessful

Sources