Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 0CDF147580E for ; Thu, 22 Aug 2002 00:48:12 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 709A147546C for ; Thu, 22 Aug 2002 00:48:11 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.5/8.12.5) with ESMTP id g7M4lcZM005501; Thu, 22 Aug 2002 00:47:38 -0400 (EDT) To: Tim Ellis Cc: "David F. Skoll" , fstefan@cable.vol.at, pgsql-admin@postgresql.org Subject: Re: OT: password encryption (salt theory) In-reply-to: <20020821191821.1ba58982.Tim.Ellis@gamet.com> References: <20020821173638.4428eb90.Tim.Ellis@gamet.com> <20020821191821.1ba58982.Tim.Ellis@gamet.com> Comments: In-reply-to Tim Ellis message dated "Wed, 21 Aug 2002 19:18:21 -0400" Date: Thu, 22 Aug 2002 00:47:38 -0400 Message-ID: <5500.1029991658@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/256 X-Sequence-Number: 5370 Tim Ellis writes: > Can anyone explain to me why a salt is really a good idea or if, as I > suspect, it was an idea with good intentions that really doesn't help > anything? I believe the original purpose was to make it less obvious whether two Unix users had the same password. (Alice reads /etc/passwd, notices that her password entry is the same as Bob's, trivially logs into Bob's account.) The small range of salts in the original implementation was, well, appropriate for machine resources of the day. These days you want a few more random bits in there. But the idea is not wrong merely because there are threats it doesn't guard against. regards, tom lane