Category

Unity Asset Store

Unity Asset Store

Encrypting Data in Unity using CryptoPrefs

I have been working in Unity since 2010 and over the years have gotten comfortable using the PlayerPrefs class to store data here and there. I'm sure many Unity developers get comfortable putting their data there. However, this data is stored in plain text on the player's machine. If you have any critical information that you need stored on the local device, be prepared for your players to play with it. Usually it is an inconsequential thing when players change some parameters, however, you can expose sensitive data and allow in app purchases to be unlocked through your player prefs…
Derrick Canfield
December 19, 2017