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​
Type | Name |
---|---|
System.Byte[] | input |
System.Int32 | inputOffset |
System.Int32 | inputLength |
System.Byte[] | output |
System.Int32 | outputOffset |
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​
Type | Name |
---|---|
System.Byte[] | input |
System.Int32 | inputOffset |
System.Int32 | inputLength |
System.Byte[] | output |
System.Int32 | outputOffset |
System.Byte[] | nonce |
System.Byte[] | secret |