Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / Win API / July 2009



Tip: Looking for answers? Try searching our database.

Label or Edit control to display passwords?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dos-man 64 - 20 Jul 2009 17:40 GMT
I guess the question is which is less secure?  Seems to me that using
a label to display the passwords could be read by some other program
using GetWindowText().  On the other hand, an edit controls contents
could be easily read by a simple WSH script using sendkeys to copy the
contents of the edit control to the clipboard.

Is there a better control that I don't know about? The encrypted edit
control hides its contents with asterisks, but the user can't see the
information.

dos-man
Larry Serflaten - 20 Jul 2009 20:01 GMT
> I guess the question is which is less secure?  Seems to me that using
> a label to display the passwords could be read by some other program
[quoted text clipped - 5 lines]
> control hides its contents with asterisks, but the user can't see the
> information.

If you are really worried, use a Picturebox control and handle the keyboard
input yourself.   At least you eliminate any means to extract text.  They'd
have to resort to using a screen snapshot and OCR....

LFS
Bob Butler - 20 Jul 2009 22:41 GMT
>I guess the question is which is less secure?  Seems to me that using
> a label to display the passwords could be read by some other program
> using GetWindowText().

Labels don't have window handles so they'd have to use an OCR application to
read it off the form window.
Michael Cole - 21 Jul 2009 01:24 GMT
> The encrypted edit
> control hides its contents with asterisks, ...

http://vb.mvps.org/samples/descriptions.asp#PassSniff

Signature

Regards

Michael Cole

Dos-Man 64 - 21 Jul 2009 04:30 GMT
> > The encrypted edit
> > control hides its contents with asterisks, ...
[quoted text clipped - 5 lines]
>
> Michael Cole

Heh, That's funny stuff. I've don't think I've ever used the masked
edit control in any of my programs. It doesn't seem to do anything
that you couldn't do yourself through code. And top of that it isn't
one of the intrinsic controls. I try never to use any controls in my
programs that require registration. I just want the exe and the
runtime. One of the many reasons I never switched to VB 7 was due to
the size of the runtime, which is bigger than some operating systems :D
Dee Earley - 22 Jul 2009 10:28 GMT
> One of the many reasons I never switched to VB 7 was due to the size
> of the runtime, which is bigger than some operating systems :D

... and is available on pretty much every windows install now. :)

Signature

Dee Earley (dee.earley@icode.co.uk)
i-Catcher Development Team

iCode Systems

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.