Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I save password in a table? 1

Status
Not open for further replies.

ledu

Programmer
Jul 3, 2001
24
MX
Hi !
I want to save personal information like a password in a table for that no one can read it ?
picture this, fields called user and password
i want to save peter in user and ***** in password
What can i do ?
i'd appreciate anything!
thanks
 
Hi
1. your intention is to display ******* when a user keys in password in the textbox... then...
Select the TextBox in the form designer of the password form..
In the property sheet of that password textBox.. select PasswordChar property and enter the vale *

In other words..
MyPassWordTextBox.PasswordChar = "*"

2. If you want to simply store and forget the password... always use a convertion method within the programe...

Example....
myPassword = SYS(2007,PassWordKeyedIn)
Store myPassword in the password field.
When ever the user enters password in the login form, convert the password entered to myPassWord using the same above function and compare.

What I have said in 2 is a very simple method to understand. But there are much better methods and encryption ways to do these passwords control.

Hope this helps you :)

ramani :-9
(Subramanian.G),FoxAcc, ramani_g@yahoo.com
 
It appears that SYS(2007) just produces an integer as an output. This makes it somewhat useless as a password protecter I'd think. If someone has access to the table in question in the first place, then I'd think he/she would have no trouble setting up a loop to start with a mock password and iterate it, checking whether it matches a required checksum. A second or two and voila! This wouldn't produce the same password the user entered, most likely. But it'd produce one which would work to log in with. If it be argued that most people wouldn't go to that trouble then it's questionable that the passwords have to be hidden from people with access to the table either.

Dave Dardinger
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top