Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/connection.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ These include the header and length fields.
## Encrypted packets
Every packet after ClientResponsePlaintext is encrypted using a Shannon cipher.

A reference implementation of the Shannon cipher can be found [here](https://github.com/sashahilton00/spotify-connect-resources/tree/master/Shannon-1.0).

The cipher is setup with 4 bytes big endian nonce, incremented after each packet, starting at zero.
Two independent ciphers and accompanying nonces are used, one for transmission and one for reception,
using respectively `send_key` and `recv_key` as keys.
Expand Down