Lightweight Anti-Cheat - Secure variables
Protect your game from cheaters who try to change your memory variables.
It's a lightweight easy to use out of box solution to encrypt your variables in RAM. It protects your variables from memory scanners and searchers. A lot of cheaters use these scanners and searchers to increase their money and items count. Or, for example, to freeze health to stay immortal.
Features
* Out of box solution
* Easy to use
* Lightweight
* Protect your game from cheaters who try to change your memory variables
Out of box solution
Just install the asset package and use it. Does not require any configuration or setup.
Easy to use
Use secure variables exactly as other value type variables. Just replace "int" to "SecureInt", "float" to "SecureFloat", etc.
For example, replace
"int health = 10;"
to
"SecureInt health = 10;"
Lightweight
A lightweight solution that contains only code you need and nothing more.
Protect your game from cheaters trying to change your variables in the memory
These variables do not store their original values in the memory. Instead, they store encrypted values. So any memory scanners and searchers can't find variable values in the memory so they can't change their values.
Supported variables
* SecureBool
* SecureDouble
* SecureFloat
* SecureInt
* SecureLong
* SecureString
* SecureByte
* SecureChar
* SecureShort
* SecureUInt
* SecureUShort
* SecureSByte
* SecureULong
* SecureVector2
* SecureVector2Int
* SecureVector3
* SecureVector3Int
* SecureQuaternion
Use this asset for encrypting your variables in memory only, since it uses fast encryption. For saving/loading game progress consider using more protected but slow encryption.
ATTENTION!
Be careful, if you replace an old serialized variable in the code with a secure one, then the prefab will lose its variable value. This problem is caused by the way Unity stores prefab values int YAML format. Specifically, it stores built-in structs and custom ones differently.
If you have any questions, write to the email LSRuizAv@gmail.com