News for hackers. Stuff that matters.
Re:Unofficial Spotify Client for the Nintendo Switch (PoC) by quenix on Thursday August 18, 2022 @04:28PM (#32514472)
I was under the impression that all audio Spotify serves is heavily DRM-ed and can only play with special hardware decoders which respect the DRM?

How did was this person able to play the encrypted audio? Does this not let them effectively rip music from Spotify?

Re:Unofficial Spotify Client for the Nintendo Switch (PoC) by mogery on Thursday August 18, 2022 @04:49PM (#32514706)
Spotify DRM is basically security through obscurity. It's just AES-128-CTR over a plain old OGG file. The tricky part is figuring out the extremely odd protocol you have to request audio keys and track data through. That's all.
Re:Unofficial Spotify Client for the Nintendo Switch (PoC) by seabrookmx on Thursday August 18, 2022 @06:49PM (#32515761)
Sounds similar to many encrypted HLS streams you see on the internet.

If you're savvy enough to watch the network tab in the browser devtools, you can grab the key and easily decrypt and assemble the chunks. You can even find reference implementations on github (hls.js for instance).

Re:Unofficial Spotify Client for the Nintendo Switch (PoC) by oceanplexian on Thursday August 18, 2022 @04:40PM (#32514614)
The DRM has been broken for years, and is still broken (I personally wrote a Rust client to grab music from Spotify in .ogg format) but their lawyers rabidly take down any reference to decrypting it on Github or anywhere else, because well, the implication.
Re:Unofficial Spotify Client for the Nintendo Switch (PoC) by arthurcolle on Thursday August 18, 2022 @09:34PM (#32516798)
A funny IASIP reference, you love to see it
Re:Unofficial Spotify Client for the Nintendo Switch (PoC) by matthewmacleod on Thursday August 18, 2022 @04:48PM (#32514686)
It's not, really – AFAIK the audio is just AES-encypted with a per-session key that you get when logging in (but it's been a long time since I looked). There are a bunch of open implementations, like https://github.com/librespot-org/librespot – I guess it's kind of an open secret that you could rip music if you really wanted to, and you certainly used to be able to do that with libspotify when it was still around. I imagine the lawyers will come for you if you're silly enough to bang on about it.

Certainly there's no need for "special hardware decoders" – Spotify works on loads of devices that have no support for that kind of thing.

Re:Unofficial Spotify Client for the Nintendo Switch (PoC) by BonoboIO on Thursday August 18, 2022 @07:11PM (#32515936)
Does Spotify watermark their streams?
Re:Unofficial Spotify Client for the Nintendo Switch (PoC) by OccamsMirror on Friday August 19, 2022 @04:28AM (#32518665)
They would be silly not to!
Re:Unofficial Spotify Client for the Nintendo Switch (PoC) by slim on Friday August 19, 2022 @12:32PM (#32523124)
They would be silly if they do. That music is not their property and they have no exclusivity. Why would they care if it gets distributed elsewhere?
Re:Unofficial Spotify Client for the Nintendo Switch (PoC) by sneakymichael on Thursday August 18, 2022 @04:38PM (#32514592)
Just some context: Spotify's official iOS library used to serve streaming [unencrypted, 'raw'] PCM data to the app for playback[1]

"The good old days"

[1] Trace of this, from 2013: https://stackoverflow.com/questions/20614360/does-the-libspo...

Re:Unofficial Spotify Client for the Nintendo Switch (PoC) by OJFord on Thursday August 18, 2022 @04:34PM (#32514541)
I don't know how special those decoders could be, obviously not Spotify-specific. Unofficial clients that want to stick around tend to require a premium account, libspotify/spotifyd on Linux for example.
Re:Unofficial Spotify Client for the Nintendo Switch (PoC) by svnpenn on Thursday August 18, 2022 @08:28PM (#32516425)
You can download L3 CDM from GitHub, or even dump your own using wvdumper/dumper. Then its just a matter of making a request to Spotify License server, which returns key for decrypting.
Re:Unofficial Spotify Client for the Nintendo Switch (PoC) by cVaqw7V34imZ8yL on Thursday August 18, 2022 @11:06PM (#32517245)
Does your PC or phone have special hardware decoders from Spotify?

Can you play Spotify on your PC or phone?

Re:Unofficial Spotify Client for the Nintendo Switch (PoC) by gambiting on Friday August 19, 2022 @05:31AM (#32519033)
I mean, both your PC and your phone will have special DRM-compliant hardware decoders available. Whether Spotify is using those or not is another question, but yes, the CPUs in phones/PCs are equipped to decrypt DRM-secured content.

(one "interesting" case around that was that some OnePlus phones couldn't play netflix in resolutions higher than 480p, because despite the Snapdragon chip supporting the DRM format required for higher resolutions, OnePlus never paid the licence to use it - so their phones couldn't decrypt the video. They did relent later and said they will enable the functionality for users who send in their phones, and it can only be flashed in person at their service centre, not via an OTA update. I always wondered how many people have done that)

Re:Unofficial Spotify Client for the Nintendo Switch (PoC) by quenix on Saturday August 20, 2022 @02:54PM (#32534328)
Yes, my PC and phone most definitely do.
Re:Unofficial Spotify Client for the Nintendo Switch (PoC) by micromacrofoot on Thursday August 18, 2022 @11:10PM (#32517259)
they just need to be a less convenient way to pirate music and no one will really bother, a lot of popular music gets pirated before it even hits Spotify anyway