Hi SLE can you give me more detail on how to use your sample
like where do i use this function? and where is the password stored?
TIA
Main Topics
Browse All TopicsHello all,
I can create a form that accepts usernames and passwords, but the passwords are hardcoded and cannot be changed or added at runtime. Any ideas on creating a secure password file that can be updated by an administrator at run time?
Thanks in advance.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I looked at this site but didn't find it http://www.sonnetusa.com/
is this the right site? or can you send me the url?
TIA
You could add a dbgrid to your form and have it call the contents of the database, but this control still doesn't allow for masking of char for the passwords you enter. The other way would be to just put textboxes in a row to create at table like form. Then just call the database up & import the fields into your textboxes. The boxes that will contain the passwords will use the password * feature to prevent being exposed.
This would be for a database containing 3 fields, user_name, password, confirm.
The form would contain 3 columns and 13 rows of textBoxes
Dim index as integer
With Me
'Get RecordData from Database file
MySet.MoveFirst
Do Until MySet.EOF Or Index = 13
.Text1(Index).Text = MySet!User_Name.Value
.Text2(Index).Text = MySet!Password.Value
.Text3(Index).Text = MySet!Confirm.Value
Index = Index + 1
MySet.MoveNext
Loop
End With
leegar@geocities.com
Business Accounts
Answer for Membership
by: SLEPosted on 1999-06-09 at 04:23:20ID: 1515970
Here's as simple Scramble function - write each record scrambled into the file. Note: sPassword is the actual (numerical) password, nKey is the user's ID number.
Public Function Scramble(sPassword As String, nKey As Integer) As String
Dim sKey As String
sKey = Format(314159 + nKey * 4, "000000")
Scramble = Format(sPassword Xor sKey, "000000")
End Function