mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 03:23:29 +01:00
feat(voice)!: add new encryption methods, remove old methods (#10451)
BREAKING CHANGE: This library no longer supports using `tweetnacl` as an encryption library due to Discord deprecating the algorithms that `tweetnacl` helped us support (read more [here](https://discord.com/developers/docs/change-log#voice-encryption-modes)). Please migrate to one of: `sodium-native`, `sodium`, `@stablelib/xchacha20poly1305`, `@noble/ciphers` or `libsodium-wrappers` unless your system supports `aes-256-gcm` (verify by running `require('node:crypto').getCiphers().includes('aes-256-gcm')`). --------- Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com> Co-authored-by: Vlad Frangu <me@vladfrangu.dev>
This commit is contained in:
@@ -53,7 +53,8 @@ try installing another.
|
||||
|
||||
- `sodium-native`: ^3.3.0
|
||||
- `sodium`: ^3.0.2
|
||||
- `tweetnacl`: ^1.0.3
|
||||
- `@stablelib/xchacha20poly1305`: ^2.0.0
|
||||
- `@noble/ciphers`: ^1.0.0
|
||||
- `libsodium-wrappers`: ^0.7.9
|
||||
|
||||
**Opus Libraries (npm install):**
|
||||
|
||||
Reference in New Issue
Block a user