X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 7CEE2475E77 for ; Fri, 25 Apr 2003 13:28:58 -0400 (EDT) Received: from mail.theinternetone.net (lnx-7-fe1.ams-2.theinternetone.net [62.4.94.8]) by postgresql.org (Postfix) with SMTP id 34598474E42 for ; Fri, 25 Apr 2003 13:28:57 -0400 (EDT) Received: (qmail 31934 invoked from network); 25 Apr 2003 17:28:42 -0000 Received: from lnx-10-be1.ams-2.theinternetone.net (HELO 444.net) (62.4.94.38) by lnx-1-1.ams-1.theinternetone.net with SMTP; 25 Apr 2003 17:28:42 -0000 Received: from 200.106.16.101 (SquirrelMail authenticated user carnage01@444.net) by webmail.444.net with HTTP; Fri, 25 Apr 2003 19:28:42 +0200 (CEST) Message-ID: <10542.200.106.16.101.1051291722.squirrel@webmail.444.net> Date: Fri, 25 Apr 2003 19:28:42 +0200 (CEST) Subject: encrypt/decrypt problem From: "=?iso-8859-1?Q?Iv=E1n?=" To: X-Priority: 3 Importance: Normal X-Mailer: SquirrelMail (version 1.2.10) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, hits=-5.9 required=5.0 tests=BAYES_01,FROM_ENDS_IN_NUMS version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/389 X-Sequence-Number: 8544 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 =3D 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/