• Manual
  • API Documentation
  • Security

    Show / Hide Table of Contents
    • Introduction
    • Installation
    • Getting Started
    • Demos
    • The Save System API
    • Auto Save
    • Platforms
    • Security
    • Serialization
    • Supported Data Types
    • Migration
    • FAQ
    • Changelog
    • Extend
      • Overview
      • Converter
      • Encryption
      • Storage
    • Guides
      • Overview
      • Configuring Settings
      • Using Auto Save
      • Basic Saving and Loading
      • Saving and Loading Raw Data
      • Deleting the Data
      • Saving and Loading Images
      • Saving and Loading Scene Objects
      • Saving and Loading Assets
      • Saving and Loading Readonly Properties
    • Integrations
      • Overview
      • Google Play Games
      • Xbox Live
      • Bolt
      • Firebase
      • PlayFab
      • PlayMaker
      • Steam Auto-Cloud
      • Steamworks .NET
      • Facepunch Steamworks
      • Text Mesh Pro
    • Storage
      • Overview
      • Backup
      • Catalog
      • Meta Data
      • Built-in Storages
        • File
        • PlayerPrefs
        • Memory
      • Third-party Storages
        • Firebase
          • Realtime Database
          • Cloud Storage
          • Firestore
        • PlayFab
          • Entity Objects
          • Entity Files
          • User Data
        • Steam
          • Steamworks .NET
          • Facepunch Steamworks
        • Google Play
          • Saved Game
        • Xbox Live
          • Connected Storage

    Security

    Encrypt your data and prevent cheaters from altering the game or app data, so they have to play the game in order to win! The AES encryption is included as built-in so you can easily use this advanced encryption algorithm to secure your data.

    Changing the Algorithm

    You can change the encryption algorithm through different ways as below:

    Settings Preset

    You can change the Encryption Algorithm Name field in Settings Preset file and then use it on your component or script, or apply it to an existing settings object. Make sure to enable Use Encryption and also use a secure and strong Password.

    You can also modify the default settings through Window > Bayat > Save System > Default Settings.

    Default Settings Window

    Also, the default settings preset file is located at Plugins/Bayat/SaveSystem/Resources/Bayat/SaveSystem/Settings/Default

    Default Settings

    SaveSystemSettings (Programatic)

    You can modify the SaveSystemSettings object when you're passing it as an argument to the API or through the DefaultSettings property.

    Passing as argument

    SaveSystemSettings settings = SaveSystemSettings.DefaultSettings.Clone();
    
    // Enable encryption
    settings.UseEncryption = true;
    
    // Use a secure and strong password
    settings.Password = "hello-world";
    
    // Set the encryption algorithm or use the default encryption algorithm through SaveSystemSettings.DefaultEncryptionAlgorithm
    settings.EncryptionAlgorithm = new MyCustomEncryptionAlgorithm();
    
    SaveSystemAPI.SaveAsync("my-data.json", myData, settings);
    

    Modifying the Default Settings

    SaveSystemSettings settings = SaveSystemSettings.DefaultSettings;
    
    // Enable encryption
    settings.UseEncryption = true;
    
    // Use a secure and strong password
    settings.Password = "hello-world";
    
    // Set the encryption algorithm or use the default encryption algorithm through SaveSystemSettings.DefaultEncryptionAlgorithm
    settings.EncryptionAlgorithm = new MyCustomEncryptionAlgorithm();
    
    • Improve this Doc
    • 0 Comments
    In This Article
    • Changing the Algorithm
      • Settings Preset
      • SaveSystemSettings (Programatic)
        • Passing as argument
        • Modifying the Default Settings