From: Ezequias Rodrigues da Rocha <ezequias.rocha@gmail.com>
To: Bart Degryse <Bart.Degryse@indicator.be>
Cc: PostgreSQL <pgsql-sql@postgresql.org>
Subject: Re: How to store a password encripted in a user definedtable
Date: Thu, 1 Mar 2007 11:58:03 -0300
Message-ID: <55c095e90703010658u72d22d38g54256769e01cd8fb@mail.gmail.com> (raw)
In-Reply-To: <45E6F4ED.A3DD.0030.0@indicator.be>
References: <675205.64473.qm@web55615.mail.re4.yahoo.com>
<55c095e90703010608w55a44b6ifbec7fe8f9fb98dd@mail.gmail.com>
<45E6F4ED.A3DD.0030.0@indicator.be>
I know it. Thank you so much.
Ezequias
Grettings from Brazil.
2007/3/1, Bart Degryse <Bart.Degryse@indicator.be>:
>
>
> update yourtable set passwordfield = md5(passwordfield)
>
> watch out: md5 is irreversable! you can't "un_md5"
>
>
> >>> "Ezequias Rodrigues da Rocha" <ezequias.rocha@gmail.com> 2007-03-01
> 15:08 >>>
>
> John,
>
> That was what I was looking for for a long time.
>
> Now I will change my teller password account to md5.
>
> Could someone suggest me how to change all passwords (PLAIN) to md5 ?
>
> My real best regards
> Ezequias
>
> 2007/3/1, John DeSoi <desoi@pgedit.com>:
> > MD5 is built-in to PostgreSQL. It is what PostgreSQL itself uses to
> > hash passwords. For example:
> >
> > select md5('this is my password');
> >
> > md5
> > ----------------------------------
> > 210d53992dff432ec1b1a9698af9da16
> > (1 row)
> >
> >
> >
> > On Mar 1, 2007, at 6:06 AM, Eugenio Flores wrote:
> >
> > > Thanks Andrej. But how can I use such algoritms in postgresql? arey
> > > they defined in a function that I can call?
> > >
> > > Or, do I have to code one of those algorithm to use it in my
> > > application?
> >
> >
> >
> > John DeSoi, Ph.D.
> > http://pgedit.com/
> > Power Tools for PostgreSQL
> >
> >
> > ---------------------------(end of
> broadcast)---------------------------
> > TIP 9: In versions below 8.0, the planner will ignore your desire to
> > choose an index scan if your joining column's datatypes do not
> > match
> >
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: ezequias.rocha@gmail.com, Bart.Degryse@indicator.be
Subject: Re: How to store a password encripted in a user definedtable
In-Reply-To: <55c095e90703010658u72d22d38g54256769e01cd8fb@mail.gmail.com>
* 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