HowTo - verify
To verify that your copy of a recording has retained its integrity, you can generate a hash of the audio data and compare against a hash previously generated for this purpose.
Assuming that the files are in FLAC format, use the included metaflac utility like so:
metaflac --show-md5sum audio_file.flac
Alternatively, a more complicated way is to extract the raw pcm data and compare the hashes, like so:
flac -d in_file.flac -o out_file.wav sox out_file.wav raw_file.raw
Next, use *sum to generate a hash of the resulting raw file, for example for 512-bit SHA-2:
You should get a hash digest, similar to the following example:
Then compare this digest to a provided one. If it is identical, the file has retained integrity and is not corrupt.
This will remain the case so long as the file remains lossless. If it is compressed with a different lossless codec or different settings, the decompressed pcm data should always remain identical.