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[], int, byte[], byte[])

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

Parameters

input byte[]
inputOffset int
inputLength int
output byte[]
outputOffset int
header byte[]
headerSize int
nonce byte[]
key byte[]

Returns

int

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

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

Parameters

input byte[]
inputOffset int
inputLength int
output byte[]
outputOffset int
header byte[]
nonce byte[]
key byte[]

Returns

int