[Flac-users] MD5 digest doesn't match

Josh Coalson xflac at yahoo.com
Mon Apr 15 22:22:02 PDT 2002


--- Steven Richman <junk at shift9.com> wrote:
> I can't figure out how to verify flac md5 signatures. The docs say
> flac
> does an md5 over the unencoded audio data, but I can't reproduce it.
> I'm
> using flac 1.0.2 and Ron Rivest's reference md5 implementation.
> 
> $ md5 temp.wav
> MD5 (temp.wav) = a7c92c4a656b2be2582f77c51b68a623
> 
> $ flac temp.wav
> $ metaflac temp.flac
> file: temp.flac
> METADATA block #0
> ...
>   MD5 signature: b315969d432443845ce93eac8355534b
> ...
> 
> $ flac -d -c temp.flac | md5
> ...
> a7c92c4a656b2be2582f77c51b68a623
> 
> Does anyone have any ideas what I'm doing wrong?

when you do 

> $ flac -d -c temp.flac | md5

the decoded output is a wave file, i.e. audio + header.  flac
does not checksum the header, or any wave metadata.  try this:

$ flac -d -c -fr -fl -temp.flac | md5

this will emit the raw audio, in the same format as it is stored
in the wave file.

Josh


__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/




More information about the Flac mailing list