Table of Contents

Class SecretBox

Namespace
Discord.Audio
Assembly
Discord.Net.WebSocket.dll
public static class SecretBox
Inheritance
SecretBox
Inherited Members

Methods

Decrypt(byte[], int, int, byte[], int, byte[], byte[])

public static int Decrypt(byte[] input, int inputOffset, int inputLength, byte[] output, int outputOffset, byte[] nonce, byte[] secret)

Parameters

input byte[]
inputOffset int
inputLength int
output byte[]
outputOffset int
nonce byte[]
secret byte[]

Returns

int

Encrypt(byte[], int, int, byte[], int, byte[], byte[])

public static int Encrypt(byte[] input, int inputOffset, int inputLength, byte[] output, int outputOffset, byte[] nonce, byte[] secret)

Parameters

input byte[]
inputOffset int
inputLength int
output byte[]
outputOffset int
nonce byte[]
secret byte[]

Returns

int