MD5 output format problem

Discussion of bugs and problems found in Altap Salamander. In your reports, please be as descriptive as possible, and report one incident per report. Do not post crash reports here, send us the generated bug report by email instead, please.
2GKUN4

MD5 output format problem

Post by 2GKUN4 »

I'm using Altap Salamander v2.51 (registered).

The output format of the Plugins->Checksum->Calculate CRC/MD5 Checksums... cannot be verified by a Linux md5sum tool. The problem appears to be a difference in the formatting of the .md5 files.

Altap Salamander output contains lines that look like this:
f0d74f9d1685da0e5f15af64569ed57b test.bin
Note that there is only a single space between the hash and the filename.

The GNU version of md5sum outputs lines that look like this in text read mode:
f0d74f9d1685da0e5f15af64569ed57b test.bin
and like this in binary read mode:
f0d74f9d1685da0e5f15af64569ed57b *test.bin

In the GNU version, the format is:
<128bit checksum><space><binary-flag><filename>
where <binary-flag> is either <space> (text mode default) or * (binary mode -b option).

The MD5 hashes themselves match correctly between the two tools.
User avatar
Ether
Posts: 1471
Joined: 10 May 2007, 16:08
Location: Czech Republic
Contact:

Post by Ether »

I don't understand, where's the problem. Is it the * mark? From what I understand, both file formats are equal, except for the * mark.
Ελληνικά rulez.
Jan Rysavy
ALTAP Staff
ALTAP Staff
Posts: 5231
Joined: 08 Dec 2005, 06:34
Location: Novy Bor, Czech Republic
Contact:

Post by Jan Rysavy »

The problem is in two spaces that md5sum requires. We should probably also insert the * mark.
Last edited by Jan Rysavy on 24 Aug 2008, 06:29, edited 1 time in total.
Raptor

Post by Raptor »

So problem is in AS output format or in md5sum output format? Who can tell? Any standards for output files here? GNU doesn't mean standard. Hash is ok, so I don't think there is problem.
Jan Rysavy
ALTAP Staff
ALTAP Staff
Posts: 5231
Joined: 08 Dec 2005, 06:34
Location: Novy Bor, Czech Republic
Contact:

Post by Jan Rysavy »

Our Checksum plugin can read md5sum outpout without problem (variable number of spaces, '*' flag, UNIX end of lines).

Problem is on md5sum side. We will support it in next update of Checksum plugin. There are other requests on this forum (support for more hash functions, non-modal Calculate window, etc).
2GKUN4

Post by 2GKUN4 »

Thanks.
Jan Patera
Plugin Developer
Plugin Developer
Posts: 707
Joined: 08 Dec 2005, 14:33
Location: Prague, Czech Republic
Contact:

Re: MD5 output format problem

Post by Jan Patera »

2GKUN4 wrote:In the GNU version, the format of MD5 files is:
<128bit checksum><space><binary-flag><filename>
where <binary-flag> is either <space> (text mode default) or * (binary mode -b option).
Since the next version of Altap Salamander (2.52), two spaces will be written between the checksum and filename.
Post Reply