Hi, in my game created with Unity, player starts certain mission which have 10 sub levels. Player can go from one level to another when he will defeat all enemies on current level. I want to store in player data on what mission is player playing and on what level he actually is. So for now my approach is
1. User starts mission, I execute cloud script which save in internal data currentMission and currentLevel.
2. When player kill all enemies in certain level I execute another cloud script which increment currentLevel.
3. When player is on the last level and kill all enemies I execute another one cloud script which will add to player gold and experience as reward for complete whole mission.
Now my question is how to prevent that user will not execute requests on playfab rest api on his own? I thought about some kind of data encryption / decryption on server and client side. I know that this is not perfect solution but it will make it harder to cheat I think.