DPB2Class · Game state and actions

Crypto

Provides crypto data and the operations listed below. Related types link to the values this API consumes or returns.

Namespace: DreamPoeBot.Loki

public class Crypto
Reference: DPB2 0.4.5.103Compare the DPB1 reference → Check signatures and usage notes separately; a matching type is not a compatibility guarantee.

Members and overloads

3 declared here

Crypto

MethodLink ↗
public Crypto.Crypto(byte[] salt)

Creates a new Crypto instance using the supplied arguments.

Parameters

salt
Parameter type: byte[]No current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies salt.

DecryptStringAes

MethodLink ↗
public string Crypto.DecryptStringAes(string cipherText, string sharedSecret)

Calls DecryptStringAes on Crypto with cipherText, sharedSecret and returns string. Open the return contract below before using the result.

Return type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

cipherText
Parameter type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies cipher text.

sharedSecret
Parameter type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies shared secret.

Returns: The string result.

EncryptStringAes

MethodLink ↗
public string Crypto.EncryptStringAes(string plainText, string sharedSecret)

Calls EncryptStringAes on Crypto with plainText, sharedSecret and returns string. Open the return contract below before using the result.

Return type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

plainText
Parameter type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies plain text.

sharedSecret
Parameter type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies shared secret.

Returns: The string result.

DPB2 0.4.5.103 · Reference reviewed 2026-10-30. Descriptions use source summaries where available, otherwise concise signature-based descriptions. Examples illustrate usage; they are not a live-game test.