News for hackers. Stuff that matters.
Re:SpotifyKeyDumper – Dump song decryption keys from the Win... by speedgoose on Saturday November 07, 2020 @03:05PM (#25018629)
Does Spotify use the same AES key for all songs?

Deezer is doing weird stuff in comparison. A friend told me that each song has every third block of 2048 bytes encrypted using blowfish. The key is derived from the hex md5 of the song ID, xor the same hex md5 but with a Ceasar cipher shift of 16, xor a hard-coded secret. The initialization vector is 0,1,2,3,4,5,6,7.

Re:SpotifyKeyDumper – Dump song decryption keys from the Win... by mimimi31 on Saturday November 07, 2020 @03:31PM (#25018954)
Deezer's encryption has been reverse engineered a few years ago and given rise to lots of scripts for ripping music from the platform. Interestingly it's even possible to download and decrypt lossless files like that without having the subscription you'd normally need to access the higher quality audio.
Re:SpotifyKeyDumper – Dump song decryption keys from the Win... by drannex on Saturday November 07, 2020 @04:11PM (#25019429)
Even more interesting on Deezer - Deezer Has a New Message for App Pirates — ‘We’re Not Going to Stop You’ https://www.digitalmusicnews.com/2020/10/26/deezer-pirate-ap...
Re:SpotifyKeyDumper – Dump song decryption keys from the Win... by jrz53 on Saturday November 07, 2020 @05:42PM (#25020350)
Looks like they pretty much care after all: https://fuwafuwa.moe/transparency/git.fuwafuwa.moe/001.2020-...
Re:SpotifyKeyDumper – Dump song decryption keys from the Win... by mmm_grayons on Saturday November 07, 2020 @07:01PM (#25021149)
Deezer has to do some sort of enforcement due to Laches doctrine. But it's pretty halfhearted compared to others.
Re:SpotifyKeyDumper – Dump song decryption keys from the Win... by lucgommans on Saturday November 07, 2020 @05:04PM (#25019992)
Grooveshark's was a beauty as well: xor 0x25

Wrote a blog post about it back in the day, for those wondering how to break (super easy) encryption: https://lgms.nl/blog-1-plain

Re:SpotifyKeyDumper – Dump song decryption keys from the Win... by Etheryte on Saturday November 07, 2020 @04:46PM (#25019813)
A classic example of stacking algorithms in a way that provides no additional benefit whatsoever. In many cases, stacking encryption algorithms actually weakens the resulting security.
Re:SpotifyKeyDumper – Dump song decryption keys from the Win... by smhmd on Saturday November 07, 2020 @04:53PM (#25019883)
> In many cases, stacking encryption algorithms actually weakens the resulting security.

Could you, please, explain how?

Re:SpotifyKeyDumper – Dump song decryption keys from the Win... by n3k5 on Saturday November 07, 2020 @05:25PM (#25020185)
Imagine you have a couple of algorithms that scramble a solved Rubik's cube into a configuration that takes at least 20 twists to unscramble [0]. From there, any attempt to make it ‘even more scrambled’ would be pointless — and actually likely make solving the resulting puzzle easier.

Now imagine there's a programmer who wants to make the ultimate cube scrambler despite not knowing any of the above. Their brilliant idea is to take the aforementioned algorithms and chain them together. (Result: snafu.)

In essence, the moral of the story is that one shouldn't try stacking encryption algorithms without first acquiring a pretty good understanding of how they all work.

[0] https://www.popsci.com/science/article/2010-08/gods-number-r...

Re:SpotifyKeyDumper – Dump song decryption keys from the Win... by sterlind on Saturday November 07, 2020 @06:11PM (#25020676)
I think it depends. Imagine a future where quantum computers may be in reach by intelligence agencies, but a quantum-resistant public key encryption algorithm has been proposed but not rigorously defended. You wouldn't want to trust either algorithm alone, so you can use both: encrypt the data with the quantum algorithm first, then by the classical one. Decrypting would require breaking both, there's no shortcuts.
Re:SpotifyKeyDumper – Dump song decryption keys from the Win... by kortilla on Saturday November 07, 2020 @10:29PM (#25022624)
That’s not how it works unless you’re sharing a key between them somehow and one of them reveals the key. Otherwise an attacker could take something encrypted with a good algorithm and encrypt the cipher text with a bad algorithm to make it easier to crack themselves.
Re:SpotifyKeyDumper – Dump song decryption keys from the Win... by n3k5 on Saturday November 07, 2020 @11:46PM (#25023089)
I gave an intuition for how it can happen that combining algorithms (in a bad way) results in weaker encryption — without claiming that it must always happen.

If we move the goalposts to where the combined algorithm receives a much larger key than any of the individual parts we're comparing to in terms of crackability, then the likely failure mode isn't ‘weaker’ any more, but ‘stronger, though maybe not as much stronger as was intended’.

The history of triple DES provides a nice practical example: ‘double DES’ isn't a thing because encrypting already-DES-encrypted data with DES again, with a completely separate key (thus effectively doubling the size of the key), does almost nothing to improve security.

Re:SpotifyKeyDumper – Dump song decryption keys from the Win... by LeCow on Sunday November 08, 2020 @02:50AM (#25023960)
To support your point. I've used these weaknesses to break crypto algorithms in the past.

A typical example is the crapto-1 Mifare Classic algorithm used to encrypt NFC cards. The way they read from the shift register and combine the bits was dumb and it's complexity weakened the algorithm.

Another I've seen is using two sequential keys XORd against one another to produce and "encryption" key. Turns out reading from low entropic systems very quickly yields a similar enough key that when XORd, partially removes the first one.

Re:SpotifyKeyDumper – Dump song decryption keys from the Win... by beagle3 on Sunday November 08, 2020 @09:15AM (#25025926)
Can you give an example (or at least a sketch) of how, e.g. AES-128 on top of, or below, DES, is weaker than either?

The claims of "weakened by combining" are often aired, but all examples I've found so far are basically summarized as "remaining within a group structure" (as in your rubik's cube example whose god number is 20) - which might not be stronger than each individual, but is unlikely to be weaker either -- and algorithm combinations usually DON'T remain within a group structure (e.g. DES is not a group, so 3DES is strictly stronger than DES, even if it might not be 3-times strong in bits)

Re:SpotifyKeyDumper – Dump song decryption keys from the Win... by kortilla on Thursday November 12, 2020 @12:06AM (#25066654)
Yes, the problem is that you are confusing key re-use with layering algorithms. Key re-use is bad, layering algorithms is not.

Without key re-use, there is no way adding another algorithm can weaken an existing encryption.

Re:SpotifyKeyDumper – Dump song decryption keys from the Win... by soared on Saturday November 07, 2020 @05:30PM (#25020245)
If I’m following this logic correctly - running a few more algorithms on something before trying to decrypt will make it easier rather than harder to decrypt?

Is the ceiling for “max encryption” that low, or is just that one algorithm combined with another has a local maximum?

Re:SpotifyKeyDumper – Dump song decryption keys from the Win... by n3k5 on Saturday November 07, 2020 @06:06PM (#25020613)
I just cherry-picked a simple example to make a clear illustration, but …

> running a few more algorithms on something before trying to decrypt will make it easier rather than harder to decrypt?

No, it could make it easier, harder, or about the same. The ‘harder’ case is just unlikely when the algorithms one started with were already state-of-the-art and the programmer didn't know what they were doing. It might seem tempting to think that a cryptanalyst now has to do twice the work, but what they're really doing isn't cracking multiple encryptions — they're just attacking a different encryption.

Re:SpotifyKeyDumper – Dump song decryption keys from the Win... by soared on Sunday November 08, 2020 @11:14AM (#25026677)
Thanks!
Re:SpotifyKeyDumper – Dump song decryption keys from the Win... by MauranKilom on Saturday November 07, 2020 @05:34PM (#25020273)
Very basic example: ROT13 is a form of encryption. Applying ROT13 twice gives you plaintext.

It's of course not that trivial with better encryption algorithms. But before stacking encryption algorithms, try to first answer what you are trying to achieve (that application of a single algorithm does not).

Re:SpotifyKeyDumper – Dump song decryption keys from the Win... by Moru on Saturday November 07, 2020 @07:18PM (#25021305)
It's more like doing ROT13 and ROT12 to strengthen the encryption. To decrypt you just need to do ROT1, not ROT-12 followed by ROT-13.
Re:SpotifyKeyDumper – Dump song decryption keys from the Win... by 3pt14159 on Sunday November 08, 2020 @05:09AM (#25024598)
There are ways where it can, but it is usually more secure to stack encryption despite what people on HN tell you. The NSA does stacks double for the secure version of the mobile phone that they give to high level diplomats and POTUS and there are cases like during Cloud Bleed where the only sites that were fully secure turned out to be the ones that used client side encryption in addition to HTTPS. I'm not saying that this would necessarily be more secure, just that is tends to be more secure based on all of the research I've done and personal experience on projects as well as conversations with people that actually break encryption for a living. The devil is in the details, though, and it also depends on the nature of your adversary.
Re:SpotifyKeyDumper – Dump song decryption keys from the Win... by bootloop on Saturday November 07, 2020 @05:57PM (#25020518)
It's a single key per song.
Re:SpotifyKeyDumper – Dump song decryption keys from the Win... by hatsunearu on Saturday November 07, 2020 @04:27PM (#25019600)
what the fuck