OapRuntimeKey

Holds the process-wide key used to decrypt encrypted Open Asset Packages at runtime. By default the key is derived from the TURIAN_OAP_KEY environment variable when set; a host can override it with Set.

Properties

Current

(byte[]?) : Gets the active 32-byte key, or when none is configured.

Public Methods

Set

public static void Set(byte[]? key)

Overrides the runtime key. Pass to disable decryption.

Parameters:

  • key (byte[]?): A 32-byte key, or .

SetPassphrase

public static void SetPassphrase(string passphrase)

Derives and sets the runtime key from a passphrase.

Parameters:

  • passphrase (string): The passphrase.