field md5
am 10.05.2004 16:28:38 von Joe Nilson Zegarra Galvez
--=-OgfowmJcvH8+HWfN+dNX
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
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
--=-OgfowmJcvH8+HWfN+dNX
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada
digitalmente
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQBAn5GV2WzuCgGWJ3kRAgsNAJoCmXFKye23Iovu7foDJhPInQuYsgCf dIRC
2YY89m6lm+A8Y51SqKA0Rl8=
=ywA0
-----END PGP SIGNATURE-----
--=-OgfowmJcvH8+HWfN+dNX--
Re: field md5
am 10.05.2004 20:37:58 von Benjamin Schulz
--=-hNq72fi1XOOA4GKUPhzT
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
> All MD5's are 32 characters in length. You need to have a field of type=
=20
> VARCHAR(32) to store your encrypted password.
char(32) would be the better choise i suppose
--=20
Benjamin Schulz
web: http://benjamin.schulz.name/
gpg: D1EBE448
--=-hNq72fi1XOOA4GKUPhzT
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: Dies ist ein digital signierter Nachrichtenteil
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQBAn8wFHidkj9Hr5EgRAk+WAKCHy3beQhwhWUDGDXMQTZz8rReKYQCe JadA
nHPu4+Xt+YueVQs/jbNQrOQ=
=zzul
-----END PGP SIGNATURE-----
--=-hNq72fi1XOOA4GKUPhzT--
Re: field md5
am 13.05.2004 07:14:24 von Joolz
> [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
---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?
http://www.postgresql.org/docs/faqs/FAQ.html