Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 05004634506 for ; Fri, 14 Aug 2009 10:24:47 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 21910-03 for ; Fri, 14 Aug 2009 13:24:43 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.181]) by mail.postgresql.org (Postfix) with ESMTP id 0311E63420F for ; Fri, 14 Aug 2009 10:24:40 -0300 (ADT) Received: by wa-out-1112.google.com with SMTP id k34so219395wah.19 for ; Fri, 14 Aug 2009 06:24:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=UvMvncOz+1qnCv4GNnIjdz4EzeLvV8MNgaKv9LalBwY=; b=Di7KyTl3U1w5+SGEp2Q4fszZS46B5d8AVWzuLGSgMlKpFBKHC/J597wz7rN/4rY7m0 yQ50nWgF1yO5WydV2iFgXI3rxOuqTTHPFOlzem0lagpwvMs8u3HoKEs5nHeXQLLdDkzL AnRw1+f7sKKu1Ay1NwIwevotqML8/PRyYGdJs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=TEbLlG4is3sMu0hEEpwo24/7l5Ss/d9r9a6svZ5N0j7cRWXOm874WkHxklQwwbYkPl yQ9UjVjqsO9S5KE8TgqrRtQ2Y5YiO7VKLu3shc1KRo7iNTGdgEQEJvFmJDlZPqR7mdgf IPJBdYmGcT//3ZENetPAl7/X1kQa9gBdIyeJM= Received: by 10.114.58.7 with SMTP id g7mr1845689waa.42.1250256279213; Fri, 14 Aug 2009 06:24:39 -0700 (PDT) Received: from eddie (c-67-182-227-82.hsd1.ut.comcast.net [67.182.227.82]) by mx.google.com with ESMTPS id j34sm2094070waf.61.2009.08.14.06.24.34 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 14 Aug 2009 06:24:35 -0700 (PDT) Date: Fri, 14 Aug 2009 07:24:16 -0600 From: Joshua Tolley To: Hengky Lie Cc: pgsql-sql@postgresql.org Subject: Re: Field or record level encryption / decryption Message-ID: <20090814132416.GC4696@eddie> References: <697B993A-8A8A-4271-AE98-B7BB4D192608@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="VywGB/WGlW4DM4P8" Content-Disposition: inline In-Reply-To: <697B993A-8A8A-4271-AE98-B7BB4D192608@gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 200908/77 X-Sequence-Number: 32986 --VywGB/WGlW4DM4P8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Aug 14, 2009 at 05:20:58PM +0800, Hengky Lie wrote: > Hi, > > Anyone know what function i can use to encrypt / decrypt field or =20 > record ? > > When record saved, it saved in encrypt format. When i need to read data,= =20 > i just call decrypt function. See the pgcrypto extension: http://www.postgresql.org/docs/current/static/pgcrypto.html -- Joshua Tolley / eggyknap End Point Corporation http://www.endpoint.com --VywGB/WGlW4DM4P8 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkqFZYAACgkQRiRfCGf1UMPNcwCgkYkPvTZpdGMficgN4+LLjjPO 80MAnitHPXeMe94uNR45NApmEXgYuH58 =nHUw -----END PGP SIGNATURE----- --VywGB/WGlW4DM4P8--