Skip to main content

Class SecretBox

Assembly: Discord.Net.WebSocket.dll​
View Source​
Declaration
public static class SecretBox

Methods​

Encrypt(Byte[], Int32, Int32, Byte[], Int32, Byte[], Byte[])​

View Source​
Declaration
public static int Encrypt(byte[] input, int inputOffset, int inputLength, byte[] output, int outputOffset, byte[] nonce, byte[] secret)
Returns​

System.Int32

Parameters​
TypeName
System.Byte[]input
System.Int32inputOffset
System.Int32inputLength
System.Byte[]output
System.Int32outputOffset
System.Byte[]nonce
System.Byte[]secret

Decrypt(Byte[], Int32, Int32, Byte[], Int32, Byte[], Byte[])​

View Source​
Declaration
public static int Decrypt(byte[] input, int inputOffset, int inputLength, byte[] output, int outputOffset, byte[] nonce, byte[] secret)
Returns​

System.Int32

Parameters​
TypeName
System.Byte[]input
System.Int32inputOffset
System.Int32inputLength
System.Byte[]output
System.Int32outputOffset
System.Byte[]nonce
System.Byte[]secret