Skip to content
Rémy F edited this page Nov 10, 2021 · 12 revisions

Find the DZR_CBC Key

The DZR_CBC key is 16 Bytes long string used for track deciphering. You can find either:

Automatically

Using charleywright's script

Manually:

  • Browse the web deezer player
  • Open the developer tool (using the F12 key)
  • Go to the "source" panel
  • Select the webworker source code
  • pretty print the source using the {} icon
  • search for 0x67] or [0x31 which are the start and end of the two half of the CBC key
  • If you feel fancy: re-assemble the 16 bytes in the following order and convert them to ASCII:
[15, ... 3,1]
  ↓ ↖   ↖↓↖↓
[16, ... 4,2]
  • If you are lazy: Go to the "console" tab of your web browser's developer tool, past and fill the following snippet:
a=[0x61, ... 0x67];
b=[0x31, ... 0x34];
[].concat(...a.map((c,i)=>[a[i],b[i]]).reverse()).map(e=>String.fromCharCode(e)).join('')

Install the DZR_CBC key

Once you've found the DZR_CBC key, export it to your environment variables (for example in your in your .profile):

echo "export DZR_CBC=g4xxxxxxxxxxxxa1" >> $HOME/.profile
source $HOME/.profile # to reload your profile

Alternatively, if you don't want change your environment variables, you can manually set it when starting dzr:

DZR_CBC=g4xxxxxxxxxxxxa1 dzr /artist/860
Clone this wiki locally