X-Original-To: pgsql-odbc@postgresql.org Received: from localhost (developer.postgresql.org [64.117.224.193]) by developer.postgresql.org (Postfix) with ESMTP id 16D639258FF for ; Thu, 29 May 2003 09:57:12 -0400 (EDT) Received: from developer.postgresql.org ([64.117.224.193]) by localhost (developer.postgresql.org [64.117.224.193:10024]) (amavisd-new) with ESMTP id 60855-03 for ; Thu, 29 May 2003 09:57:10 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by developer.postgresql.org (Postfix) with ESMTP id 4124992586F for ; Thu, 29 May 2003 09:57:10 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h4TDurU6017267; Thu, 29 May 2003 09:56:53 -0400 (EDT) To: "Dave Page" Cc: "Clay Luther" , "John K. Herreshoff" , pgsql-odbc@postgresql.org Subject: Re: odbc - ssl: how-to-do-it. In-reply-to: <03AF4E498C591348A42FC93DEA9661B825A24C@mail.vale-housing.co.uk> References: <03AF4E498C591348A42FC93DEA9661B825A24C@mail.vale-housing.co.uk> Comments: In-reply-to "Dave Page" message dated "Thu, 29 May 2003 08:09:54 +0100" Date: Thu, 29 May 2003 09:56:53 -0400 Message-ID: <17266.1054216613@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new X-Archive-Number: 200305/67 X-Sequence-Number: 2967 "Dave Page" writes: >> Is there any way/what are the ways to secure the passwords >> sent by the PGODBC driver to the DB? > Use md5 passwords. It won't prevent a replay attack, but at least they > won't be plain text. Actually md5 does make a replay attack substantially harder. What goes over the wire is an md5 checksum of the cleartext password plus username plus a 4-byte salt chosen on-the-fly by the server. So a replay attacker would have to be lucky enough to be challenged with the same salt he'd seen used before. regards, tom lane