From: | Dmitriy Igrishin <dmitigr(at)gmail(dot)com> |
---|---|
To: | Craig Boyd <craigboyd0(at)gmail(dot)com> |
Cc: | "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Blowfish Encrypted String |
Date: | 2013-09-26 16:46:53 |
Message-ID: | CAAfz9KOgBg2d3EzZnCOg0RSOmp9qoaFdcopTi3ePo+KH2hJFiQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
2013/9/26 Craig Boyd <craigboyd0(at)gmail(dot)com>
> Hello All,
>
> I have a string in a program that I have encrypted using Blowfish and I am
> now trying to figure out the best way to store that in PostgreSQL so that I
> can store it and retrieve it later for decryption. I have searched around
> and have not found some good examples of how to go about this.
>
> So my first questions is: Can someone point me to a tutorial or posting
> that shows how one might do that?
>
> Failing that:
> What data type should I use to store this?
>
I believe that you should use bytea datatype.
> What does the SQL look like to INSERT/SELECT the field?
>
Just like any other INSERT/SELECT query.
--
// Dmitriy.
From | Date | Subject | |
---|---|---|---|
Next Message | Laura Tateosian | 2013-09-26 17:01:54 | Trouble installing psycopg2 |
Previous Message | Rob Richardson | 2013-09-26 16:25:19 | Re: How do I find a trigger function that is raising notices? |