public static void ForceLockToDeviceInit() { if (string.IsNullOrEmpty(ObscuredPrefs.deviceId)) { ObscuredPrefs.deviceId = ObscuredPrefs.GetDeviceId(); ObscuredPrefs.deviceIdHash = ObscuredPrefs.CalculateChecksum(ObscuredPrefs.deviceId); } else { Debug.LogWarning("[ACTk] ObscuredPrefs.ForceLockToDeviceInit() is called, but device ID is already obtained!"); } }
public static void SetNewCryptoKey(string newKey) { ObscuredPrefs.encryptionKey = newKey; ObscuredPrefs.deviceIdHash = ObscuredPrefs.CalculateChecksum(ObscuredPrefs.deviceId); }