-
-
Notifications
You must be signed in to change notification settings - Fork 5
Secured Types
Elijah Brown edited this page Mar 14, 2024
·
4 revisions
Secured Types allow you to hide the real value of variables from users in memory by embedding symmetric encryption in basic types. In turn, Memory Detector reports on attempts to swap values, because each assignment checks the real and fake value of the variable.
Usage:
SecuredInt myInt = 32; // Yeah, it's that simple. Now you can use it in your game objects / serialization
Note! Turn-On Memory Protector to get events of cheating detection for any secured type!
Currently Available Secured Types:
- SecuredInt (Int);
- SecuredBool (Boolean);
- SecuredByte (Byte);
- SecuredChar (Char);
- SecuredColor (Color);
- SecuredColor32 (Color32);
- SecuredDecimal (Decimal);
- SecuredFloat (Float);
- SecuredInt (Int);
- SecuredLong (Long);
- SecuredQuaternion (Quaternion);
- SecuredVector2 (Vector2);
- SecuredVector3 (Vector3);
- SecuredVector4 (Vector4);
- SecuredSByte (SByte);
- SecuredShort (Short);
- SecuredString (String);
- SecuredUInt (UInt);
- SecuredULong (ULong);
- SecuredUShort (UShort);
You can use this types just like a basic types, but if you need to change some encryption keys or something else you can use our API for Any Type:
Method | Usage |
---|---|
SetNewCryptoKey (static) | Setup new Crypto Key for current type |
ApplyNewCryptoKey | Apply new Crypto Key for current variable of this type |
SetEncrypted | Set new encrypted value for current variable of this type |
GetEncrypted | Get current encrypted value of this variable |