From: | Alexi Margo <alexi(at)wwood(dot)co(dot)uk> |
---|---|
To: | "'pgsql-general(at)PostgreSQL(dot)org'" <pgsql-general(at)PostgreSQL(dot)org> |
Subject: | Encrypting fields with a one-way hash |
Date: | 2000-09-26 13:28:52 |
Message-ID: | C7114BC8AF49D31192B000A024E128D4107199@proxy.mi-group.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hi,
I'm new to PostgreSQL, but have installed it on a RedHat 6.2 box. We are
currently trying to migrate our existing MySQL applications to PostgreSQL,
but the differences in syntax are presenting a few problems.
My main stumbling block is the apparent lack of a function to form a hash
(or other one-way encrypt) of a password to enter as a field in the
database. The old SQL looks something like:
> INSERT INTO Users (Name, Password) VALUES ('John Smith',
PASSWORD('mypassword'))
This works because "PASSWORD" is an internal function in MySQL. Is there a
similar function in PostgreSQL, or some other way of achieving the same
effect? The data itself is not being moved over, so there is no need for the
same algorithm to be used.
Thanks for any and all help,
**********************************************************
Alexi Margo
Internet Systems Manager
Wildwood Technology Ltd
http://www.wwood.co.uk/
t +44-(0)20 8426 7777
f +44-(0)20 8426 5050
**********************************************************
This message is intended only for the use of the person(s) ("the Intended
Recipient") to whom it is addressed. It may contain information which is
privileged and confidential within the meaning of applicable law.
Accordingly any dissemination, distribution, copying or other use of this
message or any of its content by any person other than the Intended
Recipient may constitute a breach of civil or criminal law and is strictly
prohibited. If you are not the Intended Recipient please contact the sender
as soon as possible.
From | Date | Subject | |
---|---|---|---|
Next Message | Richard Kuhnke | 2000-09-26 13:56:13 | problem creating template database |
Previous Message | Thomas Good | 2000-09-26 13:28:30 | Re: web programming |