Encryption new user

Discussion and help for Easy Save 3, The Complete Save Game & Data Serializer System for the Unity Engine
Post Reply
Yazou
Posts: 8
Joined: Mon Jan 06, 2025 11:21 pm

Encryption new user

Post by Yazou »

Hi, I'm posting here my experience as a new user because although it's simple with the documentation, I struggled a bit.
If I understood correctly, to encrypt you just have to put AES in Easy Save in Unity
EcryptionES3.png
EcryptionES3.png (34.46 KiB) Viewed 2449 times
and by code I had a problem with the documentation that gives:
var settings = new ES3Settings(ES3.EncryptionType.AES, myPassword);

it gives me an error message, finally I had to add a location exemple:
settings = new ES3Settings("test.es3", ES3.EncryptionType.AES, "test");
User avatar
Joel
Moodkie Staff
Posts: 5069
Joined: Wed Nov 07, 2012 10:32 pm

Re: Encryption new user

Post by Joel »

Hi there, and thanks for the feedback.

I think you may be mistaken. Using the following code is valid:

Code: Select all

var settings = new ES3Settings(ES3.EncryptionType.AES, myPassword);
I suspect the reason that it wasn't working for you is because the default file already had unencrypted data saved to it, and saving encrypted data to an unencrypted file will fail. This is why specifying a filename worked: because it's then saving to a new file with no existing save data.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Yazou
Posts: 8
Joined: Mon Jan 06, 2025 11:21 pm

Re: Encryption new user

Post by Yazou »

You're right, thank you for taking the time to answer me =)
Post Reply