[mb-devel] DiscID calculation problem
Christian Pontesegger
schnitten at hotmail.com
Mon Dec 3 09:38:36 UTC 2007
Hi all,
I tried to follow the example on discid calculation on http://wiki.musicbrainz.org/DiscIDCalculation
But did not end up with the same disc id
The id from the tutorial is: 49HHV7Eb8UKF3aQiNmu1GR8vKTY-
Decoding from base64 I get: 0xE3 D1 C7 57 B1 1B F1 42 85 DD A4 22 36 6B B5 19 1F 2F
So this should be my SHA-1 value.
If I got things right we always have 2 + 100*4 = 402 bytes which we use for SHA-1 calculation
So my input looks like this
0x01 # no of first track
0x06 # amount of tracks
0x00 01 74 E6 # lead out
0x00 00 00 96 # track 1
0x00 00 36 03 # track 2
0x00 00 7E 3A # track 3
0x00 00 B6 00 # track 4
0x00 00 F7 B6 # track 5
0x00 01 3A 69 # track 6
0x00 00 00 00 # repeated 93 times
Now when I calculate SHA-1 over that data I end up with
0xdb 63 f7 ca 27 bd e3 db 94 de 0c ff 22 16 ba 92 1d 01 4c 2d
Which does not match with the expected value.
Can anyone tell where I've gone wrong?
thanks
Christian Pontesegger
_________________________________________________________________
Die neue Generation der Windows Live Services - jetzt downloaden!
http://get.live.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.musicbrainz.org/pipermail/musicbrainz-devel/attachments/20071203/85be1730/attachment.html
More information about the MusicBrainz-devel
mailing list