Re: MD5 passwords explained (was Re: md5 hash question (2)) - Mailing list pgsql-general

From Magnus Naeslund(f)
Subject Re: MD5 passwords explained (was Re: md5 hash question (2))
Date
Msg-id 01bd01c2a035$334891e0$f80c0a0a@mnd
Whole thread Raw
In response to Re: MD5 passwords explained (was Re: md5 hash question (2))  (Çağıl Şeker <cagils@biznet.com.tr>)
List pgsql-general
Çagil Seker <cagils@biznet.com.tr> wrote:
> --- Here something must be wrong ---
> I've created a user 't' with thw passwd 't'. The md5 shadow is:
>
> "md5accc9105df5383111407fd5b41255e23"
>
> Then:
>
> echo "tt" | md5sum
> "821ccb7eb5157bb2ab3727dc2845d62b"
>
> echo "t+t" | md5sum
> 6860f8721849d643fe95e0b65a423341
>
> which is different.
>

Not really, you get a newline char appended when you use "echo".
If youre using linux or compatible "echo" try this:

echo -n "tt" | md5sum

Magnus


pgsql-general by date:

Previous
From: Oleg Bartunov
Date:
Subject: Re: Full text indexing - Burrows-Wheeler + suffix arrays
Next
From: "SZŰCS Gábor"
Date:
Subject: ExecEvalExpr: unknown expression type 108