class MAGES::SecurePlayerPrefs¶
Overview¶
Saves the encrypted user credentials for the system to remember. More…
class SecurePlayerPrefs { public: // methods static void SetString(string key, string value); static string GetString(string key, string defaultValue = ""); };
Detailed Documentation¶
Saves the encrypted user credentials for the system to remember.
Methods¶
static void SetString(string key, string value)
Encrypts a given string with a specific key.
Parameters:
key |
The encryption key. |
value |
The value to be encrypted. |
static string GetString(string key, string defaultValue = "")
Decrypts a string given a specific key.
Parameters:
key |
The decryption key. |
defaultValue |
The default to return in case the decryption does not succeed. |
Returns:
The decrypted string in case it succeeds, else the default string.