pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thusitha Kodikara <kthusi@yahoo.com>
To: Michael Fuhr <mike@fuhr.org>
Cc: pgsql-sql@postgresql.org
Subject: Re: Encryption functions
Date: Thu, 18 May 2006 19:43:47 -0700 (PDT)
Message-ID: <20060519024347.40270.qmail@web30412.mail.mud.yahoo.com> (raw)
In-Reply-To: <20060518124455.GA8583@winnie.fuhr.org>

Thanks Michael, I'll check that module.


Michael Fuhr <mike@fuhr.org> wrote: On Thu, May 18, 2006 at 04:21:19AM -0700, Thusitha Kodikara wrote:
> Are there any encryption functions that can be used in
> SQL inserts and selects directly?  For example like
> "select encryptin_function('test_to_be_encrypted'), ........"

See the contrib/pgcrypto module.  It has functions like digest()
for making SHA1, MD5, and other digests; hmac() for making Hashed
Message Authentication Codes; and encrypt()/encrypt_iv() and
decrypt()/decrypt_iv() for doing encryption and decryption.  Since
8.1 pgcrypto also has functions for doing OpenPGP symmetric and
public-key encryption.

-- 
Michael Fuhr

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

view thread (6+ messages)  latest in thread

Message-ID: <20060519024347.40270.qmail@web30412.mail.mud.yahoo.com>
Permalink:  ../20060519024347.40270.qmail@web30412.mail.mud.yahoo.com/
Also on:    postgresql.org/message-id/20060519024347.40270.qmail@web30412.mail.mud.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: kthusi@yahoo.com, mike@fuhr.org
  Subject: Re: Encryption functions
  In-Reply-To: <20060519024347.40270.qmail@web30412.mail.mud.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox