Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 0BD96633F13 for ; Sat, 3 Apr 2010 10:35:28 -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 04893-01 for ; Sat, 3 Apr 2010 13:35:16 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-bw0-f209.google.com (mail-bw0-f209.google.com [209.85.218.209]) by mail.postgresql.org (Postfix) with ESMTP id 34B2D6332BC for ; Sat, 3 Apr 2010 10:35:17 -0300 (ADT) Received: by bwz1 with SMTP id 1so2031541bwz.21 for ; Sat, 03 Apr 2010 06:35:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:received:message-id :subject:from:to:content-type; bh=sVBJaBWs32P6HMI+eFeiufgdLCh1fjlcNyJ8Ly2L0P0=; b=grzsrIWjh1QiAyOF/AR7H1sjlnkry8DqF08AarCWVymswefqP1r5TbSjGzWTJ15OYB y88Fz8jj1mJR+GTuDYOx+eas1YTj3CBFPTRn2Iy8GIU4q8XRnyRolt86v3mIHnc0I3al 10aW3WLKrJTkId7c7ADwBcyATzlfIPeyT0F4Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=A99+vpoffFnOi7j+DTpzcAyf/ccr++rCj9wEG87A0al2iemfMyAn6h/SXAVlP4aeBO Fk1zqjCyQXgayXn2a3fKpXjQHTrySEEiJDPBcPjwHtRScSeui95cSOm4QAfMxhOCHmpH GnZ3WSasT4k3o8uFkgtB2zsIEOcMQt6xP2WwY= MIME-Version: 1.0 Received: by 10.204.101.6 with HTTP; Sat, 3 Apr 2010 06:35:14 -0700 (PDT) Date: Sat, 3 Apr 2010 16:35:14 +0300 Received: by 10.204.129.218 with SMTP id p26mr4116786bks.145.1270301714713; Sat, 03 Apr 2010 06:35:14 -0700 (PDT) Message-ID: Subject: Database level encryption From: Timothy Madden To: pgsql-admin@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=-10 required=5 tests=BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 201004/19 X-Sequence-Number: 34113 Hello Please how could I encrypt my database so data can be retrieved only with my password, when my client application starts, even if the database is captured ? I would like the encryption to be transparent at the application level, which needs only provide a password and then all the database can be accessed, and I would like to store my database on any filesystem on my client's computers. so I do not want filesystem ecryption either. My client has a proximity advertising application, running with a local PostgreSQL database, that they install on many computers from several client companies, to cover many spots on a given geographic area. The application always starts with my password, and my client will be the only one that can start or stop it, and I would like the application data in the database to be protected by that same password. I can only see how PostgreSQL encrypts the password or the connection in the documentation, and for the database I can see application-level encryption with pgcrypto (and filesystem level encryption), How could I get database level encryption in PostgreSQL ?