pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Iván <carnage01@444.net>
To: pgsql-admin@postgresql.org
Subject: encrypt/decrypt problem
Date: Fri, 25 Apr 2003 19:28:42 +0200 (CEST)
Message-ID: <10542.200.106.16.101.1051291722.squirrel@webmail.444.net> (raw)

hi

i need to encrypt some fields in a table of my postgre db, my table is
named clients and the fields are "id", "name" and "password", i was
looking and i find the pgcrypto utility, i read something about the
pgcrypto functions and i see the "crypto" function and use it, well the
fields change and i supose that was encrypted... but how i could obtain
the decrypt info??? (i don't know it), well next i read about the
"encrypt-decrypt" function, maybe it is what i need i try to use the
encrypt function from the EMS PostgreSQL Manager (SQL editor) in that form

UPDATE tabla2 SET pass = encrypt(pass, 'iv', 'bf');

next i try:

encrypt(pass,'fooz','bf')

but either work... i don't find much examples about it, pls does anyone
have an idea of how i can implement the encrypt on my table???

ivan


--------------------------------------------
Free Webmail courtesy of http://www.444.net/




Message-ID: <10542.200.106.16.101.1051291722.squirrel@webmail.444.net>
Permalink:  ../10542.200.106.16.101.1051291722.squirrel@webmail.444.net/
Also on:    postgresql.org/message-id/10542.200.106.16.101.1051291722.squirrel@webmail.444.net

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: carnage01@444.net
  Subject: Re: encrypt/decrypt problem
  In-Reply-To: <10542.200.106.16.101.1051291722.squirrel@webmail.444.net>
  References: <10542.200.106.16.101.1051291722.squirrel@webmail.444.net>

* 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