Secret Santa for the ones who really want it to be a secret.
The rules of the game are simple.
Remember, due to the magic of cryptography, your "Private" key can unlock only one of the messages the gamemaster shares
The keys are for public key cryptography. Using crypto magic, only the corresponding private key for a key pair can decode a message encrypted by its public key. How does this ensure anonimity? When a player generates a key pair, only they have access to both keys. Once they share the public key anonymously, the game master has access to their public key, but does not know whom that key belongs to (See how to make it anonymous in the next section). Now when the gamemaster encrypts a number, only the player who has the corresponding private key can see what that number is. The purpose of picking a number after decoding your number is to make sure you are not your own secret santa