Skip to content

Instantly share code, notes, and snippets.

View jluims's full-sized avatar
🐱

jluims jluims

🐱
  • United States
View GitHub Profile
t1 = function (t) {
//fmovies
a = 'eST4kCjadnvlAm5b1BOGyLJzrE90Q6oKgRfhV+M8NDYtcxW3IP/qp2i7XHuwZFUs'
//9anime a = '0wMrYU+ixjJ4QdzgfN2HlyIVAt3sBOZnCT9Lm7uFDovkb/EaKpRWhqXS5168ePcG'
for (t = ''.concat(t), i = 0; i < t.length; i++)
if (255 < t.charCodeAt(i))
return null;
for (var n = "", i = 0; i < t.length; i += 3) {
var u = [
void 0,
@kennytv
kennytv / readme.md
Last active September 7, 2024 18:09
Signed Chat and Chat Types

Signed chat

This gist intends on clearing up some of the misinformation surrounding signed chat/the reporting feature Mojang has added to Minecraft 1.19.1. Here you can find both technical information as well as a general explanation of how these work.

Profile keys

After joining a server, clients now send a profile key used for verifying a message's authenticity. This key and thus the whole signing process is optional, but by default, servers enforce secure profiles for clients to send chat messages. Whenever the player sends a chat message and has a key associated, the message will be signed using their own private key, which the server then verifies using the public key sent after join. Assuming signature, timestamp, and message contents line up, the message goes through.

On the other end, clients can also require all broadcasted player messages to be signed, disregarding the ones without sender verified signatures.

Message signatures

@jluims
jluims / bedrock.py
Created July 15, 2023 00:47
bedrock server list ping (python)
from dataclasses import dataclass
import socket
import random
@dataclass
class Response:
motd: str
protocol_version: str
version_name: str
online_players: int