Password encrypt

Lissymd

Registered User.
Local time
Today, 00:56
Joined
Apr 4, 2002
Messages
12
Hi

I am using the simple password protection code on a command button that opens a form. Is it possible to encrypt (or something to that effect) the password when a user types in the password? Otherwise, anyone can see the password as it is being typed.

Thanks

Lissy
 
Lissymd,

Go into design view and for the password field set its input mask to 'password'. With the mask set to password when users type in this field it will be shown as "******" on screen.

HTH,
Kevin
 
Where is the input mask properties?

The code I'm using is:

Password = InputBox("Please Enter Password")

If Password = "password" Then
'Run Button Code Here

This is placed in the "on Double Click" event.

Lissy
 
Go into design, Double-Click the field where you enter the password ( or click on the field and click the "Properties" icon on the toolbar.) Once properties is open, click on the all tab, "Input Mask should be the fifth field property down. Click at the end of the property field for Input Mask and the build event icon (...) will appear. Click "Password" and click finish.

[This message has been edited by StephenB (edited 05-09-2002).]

[This message has been edited by StephenB (edited 05-09-2002).]
 
Hi

There is no "input mask" property for the button. I am using a command button on a form. The code is placed as an event procedure of the "on click" property. I have been through all the properties for the button several times and input mask is not listed.

???

Lissy
 
Lissymd,

Instead of using an input box why don't you just build a form to do this function for you?? Create a new form called something like 'passcheck'. Create a field on the form called chkpassword. Set this fields input mask to password as described above. Have the form launch on with the buttons 'on-click' event, check the password against the variable in the form and if the password is valid run the button code.

This process is very simple to set up and will allow you to code the field for the ***** characters and its basically the same as with the inputbox its just one extra step. If you want to try setting it up this way post back and I can help you.

HTH,
Kevin
 
HI

Yes I wouldn't mind trying this solution

Lissy
 
My apologies, Lissy. I had forgotten you were using a command button. I haven't had much of a need for passwords, so I haven't used any of the security wizards in the past. I just used created a database password on a db and the text was displayed with asterisks.

The input property is on the field where you actually type the password. If you used a wizard that created a form that doesn't let go into design mode, you may want to create your own password entry form. Then you'll be able to set the input mask on the field.
 
Ok

What exactly do I put on the form? Do I just use an ordinary form?
 
I've emailed you a sample you might find useful.
 
I managed to do this lsat night, so if you would like more data in addition to DBL's sample, feel free to email me.

Stephen

[This message has been edited by StephenB (edited 05-10-2002).]
 

Users who are viewing this thread

Back
Top Bottom