Re: how to encode/encrypt a string

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Miles Keaton <mileskeaton(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: how to encode/encrypt a string
Date: 2004-09-30 16:27:59
Message-ID: 17834.1096561679@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Miles Keaton <mileskeaton(at)gmail(dot)com> writes:
> In MySQL, to store a big secret (like a credit card number) in the
> database that I didn't want anyone to be able to see without knowing
> the salt/password value, I would do this into a blob-type field:
> INSERT INTO clients(ccnum) VALUES (ENCODE(''433904123121309319', 'xyzzy'));

There are similar functions in contrib/pgcrypto/, I believe.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Claudia Restrepo Pajon - Practicante Sistemas 2004-09-30 16:31:18 postgres
Previous Message Claudia Restrepo Pajon - Practicante Sistemas 2004-09-30 16:13:54 POSTGRES