X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id C25BEDB655 for ; Tue, 1 Nov 2005 15:44:53 -0400 (AST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 90197-07 for ; Tue, 1 Nov 2005 19:44:51 +0000 (GMT) Received: from davinci.ethosmedia.com (server227.ethosmedia.com [209.128.84.227]) by svr1.postgresql.org (Postfix) with ESMTP id 9121ADB10A for ; Tue, 1 Nov 2005 15:44:52 -0400 (AST) X-EthosMedia-Virus-Scanned: no infections found Received: from [64.81.245.111] (account josh@agliodbs.com HELO [192.168.2.3]) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.1.8) with ESMTP id 8398954; Tue, 01 Nov 2005 11:47:23 -0800 From: Josh Berkus Reply-To: josh@agliodbs.com Organization: Aglio Database Solutions To: pgsql-sql@postgresql.org Subject: Re: PGSQL encryption functions Date: Tue, 1 Nov 2005 11:49:04 -0800 User-Agent: KMail/1.8 Cc: "Mark R. Dingee" References: <200511011438.06610.mark.dingee@cox.net> In-Reply-To: <200511011438.06610.mark.dingee@cox.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200511011149.05118.josh@agliodbs.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.019 required=5 tests=[AWL=0.019] X-Spam-Score: 0.019 X-Spam-Level: X-Archive-Number: 200511/8 X-Sequence-Number: 23260 Mark, > I'm in need of a one-way pgsql script that will take a plain-text string > and return an ecrypted string (preferably 32 character) . I've been > using md5('string'), but I'm concerned it's too weak for my needs. Does > anyone have any recommendations? You check out pgcrypto in /contrib in the PostgreSQL source? -- --Josh Josh Berkus Aglio Database Solutions San Francisco