Skip to content

Encrypt connection to servers on higher versions #3784

@Rigner

Description

@Rigner

Feature description

In 1.20.5, Minecraft added the ability the encrypt the connection even when in offline mode. It would be great to add support for this mechanism as well to improve security and privacy.

A new boolean was added to the Encryption Request packet to tell if the client should authenticate to Mojang or not.
https://minecraft.wiki/w/Java_Edition_protocol#Encryption_Request

Right now, this is never used in a normal minecraft server, but could be added at some point. If the server sends the packet (I made my own test), the user gets disconnected because of this check:

throw new QuietException( "Server is online mode!" );

Goal of the feature

Make the bungee <-> server connection more secured.

Unfitting alternatives

None.

Checking

  • This is not a question or plugin creation help request.
  • This is a feature or improvement request.
  • I have not read these checkboxes and therefore I just ticked them all.
  • I did not use this form to report a bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions