Received: from squeaker.ratbox.org (postfix@squeaker.ratbox.org [63.216.218.10]) by hub.org (8.10.1/8.10.1) with ESMTP id e6OMawh64336; Mon, 24 Jul 2000 18:36:58 -0400 (EDT) Received: by squeaker.ratbox.org (Postfix, from userid 500) id 6DEAEBB63; Mon, 24 Jul 2000 18:37:47 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by squeaker.ratbox.org (Postfix) with ESMTP id 68C1038E19; Mon, 24 Jul 2000 18:37:47 -0400 (EDT) Date: Mon, 24 Jul 2000 18:37:47 -0400 (EDT) From: Aaron Sethman To: "Roderick A. Anderson" Cc: "Silesky Marketing Inc, Support" , pgsql , pggeneral Subject: Re: password encryption In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200007/230 I think what he was looking for was more along the lines of a generic sql function that hashes a string, and not to update the system tables. I actually wrote a replacement for the mysql PASSWORD() function that is actually compatible with the hashing that mysql uses. If you would like a copy of this function just let me know so I can extract it out of the a bunch of other functions. Aaron On Fri, 21 Jul 2000, Roderick A. Anderson wrote: > On Fri, 21 Jul 2000, Silesky Marketing Inc, Support wrote: > > > Hello, > > > > I want to encrypt passwords with Postgresql the way mySQL does it with : > > > > UPDATE user SET Password=PASSWORD('new_password') WHERE user='root'; > > Check out the ALTER command. > > ALTER USER username > [ WITH PASSWORD 'password' ] > [ CREATEDB | NOCREATEDB ] [ CREATEUSER | NOCREATEUSER ] > [ VALID UNTIL 'abstime' ] > > > Rod > -- > Roderick A. Anderson > raanders@altoplanos.net Altoplanos Information Systems, Inc. > Voice: 208.765.6149 212 S. 11th Street, Suite 5 > FAX: 208.664.5299 Coeur d'Alene, ID 83814 > > >