X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 5CA4052A9D for ; Thu, 11 Aug 2005 23:18:20 -0300 (ADT) 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 22751-06 for ; Fri, 12 Aug 2005 02:18:18 +0000 (GMT) Received: from wolff.to (wolff.to [66.93.197.194]) by svr1.postgresql.org (Postfix) with SMTP id 2646852A8B for ; Thu, 11 Aug 2005 23:18:17 -0300 (ADT) Received: (qmail 799 invoked by uid 500); 12 Aug 2005 02:19:56 -0000 Date: Thu, 11 Aug 2005 21:19:56 -0500 From: Bruno Wolff III To: Owen Jacobson Cc: pgsql-sql@postgresql.org Subject: Re: Fwd: How to encrypt a column Message-ID: <20050812021956.GA32662@wolff.to> Mail-Followup-To: Bruno Wolff III , Owen Jacobson , pgsql-sql@postgresql.org References: <20050811203922.84270.qmail@web50602.mail.yahoo.com> <000901c59eb6$5977b120$9b00015a@osl.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000901c59eb6$5977b120$9b00015a@osl.com> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=[AWL=0.006] X-Spam-Level: X-Archive-Number: 200508/62 X-Sequence-Number: 22290 On Thu, Aug 11, 2005 at 13:50:45 -0700, Owen Jacobson wrote: > Jeff Lu wrote: > > > Another question is can the encrypted column be of type "text" ? > > Can't see any reason why not, so long as the encrypted data is represented > as text. There can't be any 0 bytes in the encrypted string or the string will be truncated.