Re: Pgcrypto install (I've tried multiple ways)
От
David Patricola
Тема
Re: Pgcrypto install (I've tried multiple ways)
Дата
Msg-id
694A7AAE45F84E29A84ED1A39427C23E@tjumst.jefferson.edu
Ответ на
Список
Дерево обсуждения
Pgcrypto install (I've tried multiple ways) "David Patricola" <david.patricola@jefferson.edu>
Re: Pgcrypto install (I've tried multiple ways) Tom Lane <tgl@sss.pgh.pa.us>
Re: Pgcrypto install (I've tried multiple ways) "David Patricola" <david.patricola@jefferson.edu>
Re: Pgcrypto install (I've tried multiple ways) Tom Lane <tgl@sss.pgh.pa.us>
Re: Pgcrypto install (I've tried multiple ways) "David Patricola" <david.patricola@jefferson.edu>
Re: Pgcrypto install (I've tried multiple ways) Tom Lane <tgl@sss.pgh.pa.us>
Re: Pgcrypto install (I've tried multiple ways) "David Patricola" <david.patricola@jefferson.edu>
Re: Pgcrypto install (I've tried multiple ways) "David Patricola" <david.patricola@jefferson.edu>
Re: Pgcrypto install (I've tried multiple ways) Michael Wood <esiotrot@gmail.com>
Re: Pgcrypto install (I've tried multiple ways) "David Patricola" <david.patricola@jefferson.edu>
I did read about the pgp functions but they are on another level right now. I just want to be able to encrypt and decrypt data to a database competently. From there I'll learn about the more advanced functions. -----Original Message----- From: pgsql-novice-owner@postgresql.org [mailto:pgsql-novice-owner@postgresql.org] On Behalf Of Tom Lane Sent: Thursday, January 27, 2011 6:34 PM To: David Patricola Cc: pgsql-novice@postgresql.org Subject: Re: [NOVICE] Pgcrypto install (I've tried multiple ways) "David Patricola" writes: > Actually, what is bytea in terms of type, or rather, what types of database > fields will this work with? The field I'm calling from the table is varchar > (the encrypt function worked find for this). bytea is for arbitrary byte strings, ie, non-textual data. Typically you'd store the output of encrypt() (which yields bytea) in the database and then apply decrypt() to that. Not sure what you're trying to do above. BTW, according to the pgcrypto man page, use of the PGP functions is preferred over directly using encrypt/decrypt. regards, tom lane -- Sent via pgsql-novice mailing list (pgsql-novice@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-novice
В списке pgsql-novice по дате отправления