Not really something I need to know, but I’m curious as hell…
Does anyone know what this method does? And if it even works? Can’t test it at the moment but if anyone can then lmk
Edit: I don’t mean the class itself, I mean it’s EncryptStringForPlayerId method. It has no docs about it, just how to use it. No idea what it returns at all, other than it’s a string
Roblox documentation sometimes have oopsies that make stuff left unexplained
Anyways! EncryptStringForPlayerId is used to encrypts a given string using a player’s ID so that the string can only be decrypted by that specific player. This can be useful for things like sensitive data, or just ensuring that the data is player-specific and not easily accessible to others.
Very cool example: NetworkServer:EncryptStringForPlayerId(playerID, verySecretString)
playerID: ID of the player for whom the string will be encrypted.
verySecretString: The string to encrypt for that playerID.
This method is usually used to store player-specific data like game progress, settings, or preferences, and so that only the player can access their data. That means, no other player can read or alter the encrypted string, because the encryption is unique to the player’s ID. Hope this helps! :P