Table of Contents

Class EncryptionSettings

Namespace
CodeStage.AntiCheat.Storage
Assembly
Build.dll

Different ObscuredFile and ObscuredFilePrefs encryption-related settings.

public class EncryptionSettings
Inheritance
object
EncryptionSettings

Constructors

EncryptionSettings(byte[])

Creates new specified encryption settings instance.

public EncryptionSettings(byte[] password = null)

Parameters

password byte[]

Password bytes used to encrypt and decrypt data. Changes the way data is stored in the file: plain (as is) if password is not set or empty, otherwise data will be encrypted on write and decrypted on read using this password.

EncryptionSettings(string)

Creates new specified encryption settings instance.

public EncryptionSettings(string password)

Parameters

password string

Password string used to encrypt and decrypt data. Changes the way data is stored in the file: plain (as is) if password is not set or empty, otherwise data will be encrypted on write and decrypted on read using this password. Will be converted to byte[] internally.

Properties

ObscurationMode

Represents the way data is stored in the file: eiter plain (as is) or encrypted with user-set password, depending on Password value.

public ObscurationMode ObscurationMode { get; }

Property Value

ObscurationMode

Password

Password used to encrypt and decrypt data. Switches ObscurationMode to ObscurationMode.Encrypted when set or to ObscurationMode.Plain when not set.

public byte[] Password { get; }

Property Value

byte[]

Remarks

⚠️ Warning: Any existing data encrypted with one password will not be readable with another password.