pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
field md5
4+ messages / 4 participants
[nested] [flat]

* field md5
@ 2004-05-10 14:28 Joe Nilson Zegarra Galvez <nzegarra@kolareal.net>
  2004-05-10 14:51 ` Re: field md5 Christopher Kings-Lynne <chriskl@familyhealth.com.au>
  2004-05-13 05:14 ` Re: field md5 Joolz <joolz@xs4all.nl>
  0 siblings, 2 replies; 4+ messages in thread

From: Joe Nilson Zegarra Galvez @ 2004-05-10 14:28 UTC (permalink / raw)
  To: pgsql-php

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?.

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

Attachments:

  signature.asc (application/pgp-signature, 188B) download

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: field md5
  2004-05-10 14:28 field md5 Joe Nilson Zegarra Galvez <nzegarra@kolareal.net>
@ 2004-05-10 14:51 ` Christopher Kings-Lynne <chriskl@familyhealth.com.au>
  2004-05-10 18:37   ` Re: field md5 Benjamin Schulz <benjamin@schulz.name>
  1 sibling, 1 reply; 4+ messages in thread

From: Christopher Kings-Lynne @ 2004-05-10 14:51 UTC (permalink / raw)
  To: Joe Nilson Zegarra Galvez <nzegarra@kolareal.net>; +Cc: pgsql-php

> 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?.

All MD5's are 32 characters in length.  You need to have a field of type 
VARCHAR(32) to store your encrypted password.

> And is stable the 7.4.2? o r i must wait to the RHDB next release to
> upgrade my postgres?.

7.4.2 is the latest, most stable release.

Chris




^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: field md5
  2004-05-10 14:28 field md5 Joe Nilson Zegarra Galvez <nzegarra@kolareal.net>
  2004-05-10 14:51 ` Re: field md5 Christopher Kings-Lynne <chriskl@familyhealth.com.au>
@ 2004-05-10 18:37   ` Benjamin Schulz <benjamin@schulz.name>
  0 siblings, 0 replies; 4+ messages in thread

From: Benjamin Schulz @ 2004-05-10 18:37 UTC (permalink / raw)
  To: Christopher Kings-Lynne <chriskl@familyhealth.com.au>; +Cc: Joe Nilson Zegarra Galvez <nzegarra@kolareal.net>; pgsql-php

> All MD5's are 32 characters in length.  You need to have a field of type 
> VARCHAR(32) to store your encrypted password.

char(32) would be the better choise i suppose

-- 
Benjamin Schulz

web: http://benjamin.schulz.name/
gpg: D1EBE448

Attachments:

  signature.asc (application/pgp-signature, 188B) download

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: field md5
  2004-05-10 14:28 field md5 Joe Nilson Zegarra Galvez <nzegarra@kolareal.net>
@ 2004-05-13 05:14 ` Joolz <joolz@xs4all.nl>
  1 sibling, 0 replies; 4+ messages in thread

From: Joolz @ 2004-05-13 05:14 UTC (permalink / raw)
  To: pgsql-php

> [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



^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2004-05-13 05:14 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-05-10 14:28 field md5 Joe Nilson Zegarra Galvez <nzegarra@kolareal.net>
2004-05-10 14:51 ` Christopher Kings-Lynne <chriskl@familyhealth.com.au>
2004-05-10 18:37   ` Benjamin Schulz <benjamin@schulz.name>
2004-05-13 05:14 ` Joolz <joolz@xs4all.nl>

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