Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 5312863411E for ; Fri, 14 Aug 2009 13:15:07 -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 03223-03 for ; Fri, 14 Aug 2009 16:15:04 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-px0-f180.google.com (mail-px0-f180.google.com [209.85.216.180]) by mail.postgresql.org (Postfix) with ESMTP id C603763266B for ; Fri, 14 Aug 2009 13:15:03 -0300 (ADT) Received: by pxi10 with SMTP id 10so402179pxi.28 for ; Fri, 14 Aug 2009 09:15:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=Y2wFkcmTH/iNxfg8GTU3kbd80/f6Ctj3oM2o10hAzCk=; b=WW8W64R9zYA+Pp8/Q/fz2YeEkn7r9C6GzUf1/hxIw/9hWsUuzqAQ/S7zkd3Dhv8X9C kp2q2uLt/DspPEF6jwWDdof6IRHSDPzGDp4AjLjBgOMEIbtMSYI1glUkXv6rImd405vV vwnGlmgkOGtfSNaPcG6wXIdPFA9luVBj8LEPQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=wXOnv137GqWF3KLookLDJAMQZTRElNIW6N1r6LZ6xtnh9LVnNG0qvSKZ94OjjXueH7 Evd7+ytIcRLJ+bOi0SuaES6/M5I3IxLS70cDkdApMvZy3PWA3/BrhuEvwKrWgqTz5gWX JoUQAHQSpSAYp9D7YVoBtYgEzAFMI77wLwyWU= Received: by 10.115.114.7 with SMTP id r7mr1916024wam.224.1250266502849; Fri, 14 Aug 2009 09:15:02 -0700 (PDT) Received: from ?192.168.0.112? ([125.162.244.7]) by mx.google.com with ESMTPS id k35sm2349883waf.29.2009.08.14.09.14.59 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 14 Aug 2009 09:15:02 -0700 (PDT) Message-Id: From: Hengky Lie To: pgsql-sql@postgresql.org In-Reply-To: <8763cqqv4c.fsf@dba2.int.libertyrms.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v935.3) Subject: Re: Field or record level encryption / decryption Date: Sat, 15 Aug 2009 00:07:54 +0800 References: <697B993A-8A8A-4271-AE98-B7BB4D192608@gmail.com> <8763cqqv4c.fsf@dba2.int.libertyrms.com> X-Mailer: Apple Mail (2.935.3) 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/82 X-Sequence-Number: 32991 Thanks to all who response my question. I have checked the doc, but it seems too advance for my postgresql knowledge. Other question is where can i get pgcrypto modules ? For simple record encryption that contains date field, varchar, integer and text, what encryption i can use ? As far as i know, there is no way to return MD5 result back to its original value. Is this true or not ? Thanks a lot On Aug 14, 2009, at 11:21 PM, Christopher Browne wrote: > hengkyliwandouw@gmail.com (Hengky Lie) writes: >> Anyone know what function i can use to encrypt / decrypt field or >> record ? >> >> When record saved, it saved in encrypt format. When i need to read >> data, i just call decrypt function. >> >> I am using MS Access 2003 and Postgresql 8.3 > > I'd suggest referring to the fine manual... > http://www.postgresql.org/docs/8.3/static/pgcrypto.html > -- > output = reverse("ofni.sailifa.ac" "@" "enworbbc") > Christopher Browne > "Bother," said Pooh, "Eeyore, ready two photon torpedoes and lock > phasers on the Heffalump, Piglet, meet me in transporter room three" > > -- > Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-sql