I have 2 questions.
Question 1
So I have set up saving and loading normally and everything is working good.
So I decided to enable some protection now.
I went into Easy Save > Settings (Runtime Settings) > Under Encryption selected AES & set a password 'Johnny$uper$tar'
When I run the game I encounter this error:
Code: Select all
FormatException: Cannot load from file because the data in it is not JSON data, or the data is encrypted.
If the save data is encrypted, please ensure that encryption is enabled when you load, and that you are using the same password used to encrypt the data.
ES3Internal.ES3JSONReader..ctor (System.IO.Stream stream, ES3Settings settings, System.Boolean readHeaderAndFooter) (at Assets/Settings/Asset Store Packages/Easy Save 3/Scripts/Readers/ES3JSONReader.cs:39)
ES3Reader.Create (ES3Settings settings) (at Assets/Settings/Asset Store Packages/Easy Save 3/Scripts/Readers/ES3Reader.cs:348)
ES3.Load[T] (System.String key, T defaultValue, ES3Settings settings) (at Assets/Settings/Asset Store Packages/Easy Save 3/Scripts/ES3.cs:415)
ES3AutoSaveMgr.Load () (at Assets/Settings/Asset Store Packages/Easy Save 3/Scripts/Auto Save/ES3AutoSaveMgr.cs:81)
ES3AutoSaveMgr.Awake () (at Assets/Settings/Asset Store Packages/Easy Save 3/Scripts/Auto Save/ES3AutoSaveMgr.cs:100)
Question 2
Also, I opened the Persistent Data Path folder and opened the file and it is a long list of
...
46d5 e6d0 80b6 e284 5260 fd4a e977 6dfc
350a fc0e 404a 3314 91da 4928 1897 7ddf
898c 4422 b7d9 da4f 1cee 4ca6 71c8 5797
c75d cff5 3d9b 5b2e db91 f9f0 5f3e ef08
4203 950e 74ff b1d0 0401 3574 ba04 efdd
19cc cdbd 0060 b7a5 ca71 669b 2256 20e9
9ec9 3b76 ff24 2328 07bd 7b7b 735a 53e1
...
I copied everything from the file and found a random online decryption site and pasted in the content and used my key to decrypt it but nothing happens. Is the encryption method different in the way Unity handles it?