Expand description
Cryptographic primitives for the Minecraft protocol.
Provides AES-128-CFB8 stream encryption (used after the login handshake), RSA-1024 key pair generation (for the server’s identity during login), and RSA decryption (to unwrap the client’s shared secret).
Structs§
- Cipher
State - Stateful AES-128-CFB8 stream cipher for Minecraft protocol encryption.
- Decrypt
Cipher - Decrypt half of a split
CipherState. - Encrypt
Cipher - Encrypt half of a split
CipherState. - Server
KeyPair - An RSA key pair for the Minecraft login handshake.
Enums§
- Crypto
Error - Errors from cryptographic operations.
Functions§
- generate_
challenge - Generates a random 4-byte verification challenge.
- minecraft_
digest - Computes the Minecraft authentication hash (server ID digest).
- offline_
uuid - Generates an offline-mode UUID v3 from a player name.