We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Discord plans to drop support for non-encrypted voice. So, we need to get voice encryption support added quickly.
Discord is using NaCl SecretBox for encryption (https://nacl.cr.yp.to/secretbox.html)
The text was updated successfully, but these errors were encountered:
Rough steps for encryption.
Need to pass xsalsa20_poly1305 as the mode for voiceUDPOp{} in voice.go:udpOpen() func. to get the encryption party started. 85e06e3#diff-952a4895d262bd9f63ab49444784519dR398
xsalsa20_poly1305
Then, on the WS opcode 4 comes back that should contain the encryption secret
Example op 4
{ "secret_key": [ 254, 232, 117, ..... this continues to create a total of 32 int values 180, 232 ], "mode": "xsalsa20_poly1305" }
85e06e3#diff-952a4895d262bd9f63ab49444784519dR205
After we build the packet to send, encrypt the opus data before sending 85e06e3#diff-952a4895d262bd9f63ab49444784519dR494
When we receive a packet, decrypt the opus data 85e06e3#diff-952a4895d262bd9f63ab49444784519dR574
Sorry, something went wrong.
85e06e3
bwmarrin
No branches or pull requests
Discord plans to drop support for non-encrypted voice. So, we need to get voice encryption support added quickly.
Discord is using NaCl SecretBox for encryption (https://nacl.cr.yp.to/secretbox.html)
The text was updated successfully, but these errors were encountered: