I found a problem:
1) Configure ES3 with AES in settings.
2) Save file with ES3.SaveRaw(bytes, path);
3) Load file with ES3.LoadRawBytes(path);
4) Data was broken.
Cause: we save file with previous configuration (AES enabled in default settings), but method ES3.LoadRawBytes - simple load file from path without any decryption.
Solved by replace (in ES3.cs):
if (settings.location == Location.File) { ES3IO.ReadAllBytes(settings.FullPath) }with:
if (settings.location == Location.File) { using (var stream = ES3Stream.CreateStream(settings, ES3FileMode.Read)) { var bytes = new byte[stream.Length]; stream.Read(bytes, 0, bytes.Length); return bytes; } }if has any other solution, will glad to hear.
Thank you!