3 ms·
Not quite as user-friendly with regards to exposing the keys, but if you're interested in learning Rust you can check out the reverse-engineered protocol and ac
by tbrockman 6y ago
Not quite as user-friendly with regards to exposing the keys, but if you're interested in learning Rust you can check out the reverse-engineered protocol and access already decrypted audio streams using librespot: https://github.com/librespot-org/librespot https://github.com/librespot-org/librespot
- Retr0spectrum 6y agoThey're not already-decrypted, they re-implemented the entire DRM stack and decryption process: https://github.com/librespot-org/librespot/blob/dev/audio/src/decrypt.rs https://github.com/librespot-org/librespot/blob/dev/audio/sr... You could add a print statement in there to dump keys.
- tbrockman 6y agoI mean "already decrypted" to say that the work of decrypting has already been done for you, sorry if that wasn't clear.
- deleted 6y ago[deleted]
- skykooler 6y agoAlthough, librespot (intentionally) provides no mechanism to write decrypted audio to disk.
- krick 6y agoWell, if you're "interested in learning Rust", it's not that hard to add.
- kingosticks 6y agoOne of the audio backends is a pipe output. There's not much left to do to achieve that goal.
- Macha 6y agoNote that last I checked, this only provides real time output, likely to avoid a youtube_dl type situation where someone uses it directly to build a Spotify ripper. Of course, it could be patched to work differently.
- kingosticks 6y agoThere's an issue about that because surprisingly it's actually the opposite and it outputs as fast as it downloads the data. Hopefully that'll be fixed because it's definitely not the intention for people to the software for ripping.