473,320 Members | 1,845 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

users and passwords

Can anyone tell me about passwords? What I plan to do is write a username
and a password into a mySQL table. How do I encrpyt the password? And after
it's written, how can I match a password submitted in a form to it, because
the password in the form would be unencrypted?

Any help is appreciated!
Matt
Jul 16 '05 #1
2 2711
Matt Schroeder wrote:
Can anyone tell me about passwords? What I plan to do is write a username
and a password into a mySQL table. How do I encrpyt the password? And after
it's written, how can I match a password submitted in a form to it, because
the password in the form would be unencrypted?

Any help is appreciated!
Matt

http://www.mysql.com/doc/en/Password_hashing.html
Jul 16 '05 #2
Hi Matt!
On Tue, 15 Jul 2003 03:45:40 GMT, "Matt Schroeder"
<wn*********@comcast.net> wrote:
Can anyone tell me about passwords? What I plan to do is write a username
and a password into a mySQL table. How do I encrpyt the password? And after
it's written, how can I match a password submitted in a form to it, because
the password in the form would be unencrypted?

If you want it independent from MySQL, use md5() when you store the
password and compare the stored password with the md5() of the entered
password.

I also tend to strip off spaces (trim()) as users copy the password
from Outlook, which marks the pass-word and the trailing space

HTH, Jochen
--
Jochen Daum - CANS Ltd.
PHP DB Edit Toolkit -- PHP scripts for building
database editing interfaces.
http://sourceforge.net/projects/phpdbedittk/
Jul 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: J-T | last post by:
I need to create a webserivce which is able to talk to the following components: 1) Another webservice which is written by java and talks to its own backend database to authenticate the users...
10
by: 4site | last post by:
Happy New Year and all that! I'd like to write a short PHP script that will allow users to alter their virtual server password via a secure web form. I had hoped that I might be able to call...
6
by: google | last post by:
I have a few general questions. I am working on a new database to be used within my company. I would like to give a couple of people, particularly HR, the ability to add and delete Access users,...
1
by: jistanidiot | last post by:
We're in the middle of upgrading from MySQL 3.23 to MySQL4.1. I'm trying to import all of the info in the mysql database (ya know the db that keeps track of all the users and what they can and...
6
by: Jan | last post by:
Hi: I have created a secured database for a client. For various reasons, I don't want the client to have full persmissions for the database; they aren't in the admins group. I have instead tried...
5
by: Terry Holland | last post by:
I have an intranet application that comprises an ASP.Net application connecting to a SQL Server DB The application has 150 users. At the moment I am connecting using the following setup I have...
11
usafshah
by: usafshah | last post by:
Is there any simple way to change all the passwords for an Organization Unit or users in a group at once? I want to set same passwords to all users !
1
by: postmanpat | last post by:
i have to create a login form that validates the users and passwords from a text file. I have another function that can add new users and passwords by writing to a test file split by a delimiter. But...
4
by: =?Utf-8?B?R2hpc3Rvcw==?= | last post by:
Hi, I collect hashed password in my BD. I give the opportunity to the user to reset his password with the PasswordRecovery control. But, when he receive it , it is a series fo strange characters...
1
harshadd
by: harshadd | last post by:
I want to replicate users (with there passwords and home directories) on diff Linux server, reason is I have a working setup of ssh and vsftp which is being used by many users who are not contactable...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.