Re: MD5 passwords explained (was Re: md5 hash question (2))

From: "Magnus Naeslund(f)" <mag(at)fbab(dot)net>
To: "al eker" <cagils(at)biznet(dot)com(dot)tr>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: MD5 passwords explained (was Re: md5 hash question (2))
Date: 2002-12-10 10:16:27
Message-ID: 01bd01c2a035$334891e0$f80c0a0a@mnd
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Çagil Seker <cagils(at)biznet(dot)com(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message SZŰCS Gábor 2002-12-10 12:05:47 ExecEvalExpr: unknown expression type 108
Previous Message Oleg Bartunov 2002-12-10 10:15:44 Re: Full text indexing - Burrows-Wheeler + suffix arrays