pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kelvin Varst <kelvin@varst.dk>
To: Postgresql PHP <pgsql-php@postgresql.org>
Subject: MD5 and passwords
Date: Sat, 1 Mar 2003 11:17:18 +0100
Message-ID: <1046513798.6989@mail4.wannafind.dk> (raw)


Hi,

I have build a website where users need to identity themselfs using basic
auth. I have then installed auth_pgsql_mod on my Apache 2.0 server (Redhat
8.0), and that works fine. I would like to store the passwords in the
database in MD5 encrypted form, and that works fine to, if I write the md5
encrypted string in the database manually. When I use the md5sum to
translate plain text to md5 on the command line on my Linuxbox, and place
that in the database, it works fine. Now I want users to be able to write
plain written text on the webpage, and then the page translates that into a
md5 string and from there store the md5 string in the database. But it is
not the same encryption, I get two different encrypted strings if I use the
md5() function. Why?

Kelvin :-)






Message-ID: <1046513798.6989@mail4.wannafind.dk>
Permalink:  ../1046513798.6989@mail4.wannafind.dk/
Also on:    postgresql.org/message-id/1046513798.6989@mail4.wannafind.dk

 · 

reply

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: kelvin@varst.dk
  Subject: Re: MD5 and passwords
  In-Reply-To: <1046513798.6989@mail4.wannafind.dk>
  References: <1046513798.6989@mail4.wannafind.dk>

* 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