Quantcast
Viewing all articles
Browse latest Browse all 10823

PlayerPrefs Encryption

Hi,

I don't know how secure PlayerPrefs is, but I figured adding an extra layer of complexity wouldn't hurt, especially if you're storing stuff like score etc.

I wanted something easy to implement in a project where I already used PlayerPrefs to store my data. I decided to store the values the same way as PlayerPrefs does, but I also store an md5-encrypted value to check if the value is legit.

Useage example :
Code (csharp):
  1.  
  2.     void Start () {
  3.         // this array should be filled before you...
PlayerPrefs Encryption

Viewing all articles
Browse latest Browse all 10823

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>