contrib/pgcrypto - Mailing list pgsql-hackers

From Moran.Michael
Subject contrib/pgcrypto
Date
Msg-id B27C8914860EE24E865D189A3735EA53100939@lasexch03.is.ad.igt.com
Whole thread Raw
Responses Re: contrib/pgcrypto  (Marko Kreen <marko@l-t.ee>)
List pgsql-hackers
Hello,

How do you encrypt() & decrypt() data of types INT4 or DATE?

The PGCrypto methods encrypt() and decrypt() each take BYTEA as input:

i.e.,   encrypt( data::bytea, key::bytea, type::text)   decrypt( data::bytea, key::bytea, type::text)

So how do you convert INT4 and DATE data into BYTEA so that they can be
passed as input into the PGCrypto methods encrypt() & decrypt()?

Thank you,
Michael Moran





pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: PQexecParams
Next
From: "Merlin Moncure"
Date:
Subject: Re: PQexecParams