Choose your settings

Start with the default JSON format, without encryption or compression. You can inspect the save while building your game.

When you need encryption or smaller files:

  1. Open Tools → Complete Save System.
  2. Choose Binary format.
  3. Choose encryption and/or compression, then save the configuration.
  4. Save, close the game, and load again to check the result.
What does Binary format mean?

Binary mode stores JSON-based data as bytes with optional compression and encryption. It does not use BinaryFormatter.

Encrypt a new save

Choose AES and set your encryption credentials. Keep those credentials available for future versions so existing players can still load their saves.

AES also checks whether the encrypted data has been altered. A failed check returns an error instead of accepting the data.

Encryption is not an anti-cheat server

Credentials included in a game can be recovered from it. Use server-side validation when progress must be trusted.

Advanced: encryption format

AES files use AES-CBC with HMAC-SHA256, random salt/IV, and PBKDF2-SHA256-derived keys. Authentication is checked before accepting the payload. Salt and IV are generated automatically for every write; only a password is required.

Make save files smaller

OptionWhen to try it
NoneKeep the simplest setup while developing.
GZipA starting point for general-purpose compression.
LZ4Try when speed matters more than the smallest possible file.
Brotli / BZip2Compare file size and saving time with your game's real data.

Change settings safely

Back up an existing save before changing these options. Test both a fresh save and a save from your previous game version.

Advanced: compatibility and decoding

Files record their codec settings and compress before encryption. Keep the encryption password available when loading encrypted saves.

Decoders limit output size and reject invalid or truncated data. Codec failures are reported through save/load results. Measure performance in a real player build.