From: Joolz <joolz@xs4all.nl>
To: Lista PG-PHP <pgsql-php@postgresql.org>
Subject: Re: field md5
Date: Thu, 13 May 2004 07:14:24 +0200
Message-ID: <20040513051424.GA2640@localhost.localdomain> (raw)
In-Reply-To: <1084199317.2679.3.camel@dune.kolareal.net>
References: <1084199317.2679.3.camel@dune.kolareal.net>
> [Joe Nilson Zegarra Galvez schreef op 10-05-2004 09:28 -0500]
>
> Hi, i'm working with a table that must have the password field crypted
> in md5 with php, i'm using a 7.3.4-RH Postgresql version, how i can set
> the type of the field?, if the password must have 12 how max length but
> is stored in md5?.
FYI, I heard that 7.4 has a md5 function on board, so you wouldn't
have to depend on the php function. A better choice IMO. This way you
can change your interface to another script language and still have
the functionality.
As to the length: why not simply make it varchar and let pg handle the
storage? IIRC there is no difference between 2 filled varchar(10)
fields and 2 filled varchar fields.
> And is stable the 7.4.2? o r i must wait to the RHDB next release to
> upgrade my postgres?.
>
> Thankx 4 all
>
> Regards
>
>
> Joe Nilson
>
>
--
07:11-07:14
Fedora Core release 1 (Yarrow) Linux 2.4.22-1.2188.nptl
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-php@postgresql.org
Cc: joolz@xs4all.nl
Subject: Re: field md5
In-Reply-To: <20040513051424.GA2640@localhost.localdomain>
References: <1084199317.2679.3.camel@dune.kolareal.net> <20040513051424.GA2640@localhost.localdomain>
* 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