STORING THE PASSWORD IN A HIDDEN TLABEL. IS THIS SECURE

Go down

STORING THE PASSWORD IN A HIDDEN TLABEL. IS THIS SECURE

· #1

MY PROGRAM HAS A PASSWORD

I PUT IT IN A TLABEL AND SET Visible := False SO NOBODY CAN SEE IT

MY COUSIN SAYS THIS IS NOT SECURE. MY COUSIN IS NOT A PROGRAMMER

sorry about the caps. the question stands

SORRY ABOUT THE CAPS

Re: STORING THE PASSWORD IN A HIDDEN TLABEL. IS THIS SECURE

· #2

Your cousin is right, and should consider a career change.

Visible := False hides the label from the window. The caption is still stored in the form's resource, inside your executable, as plain text. Anyone can find it with a text search:

bash
strings myprogram | grep -i password

It will be right there, next to the word Caption.

Re: STORING THE PASSWORD IN A HIDDEN TLABEL. IS THIS SECURE

· #3

I RAN THAT

IT FOUND MY PASSWORD

it also found my wifi password. i dont remember putting that in. sorry

SORRY ABOUT THE CAPS

Re: STORING THE PASSWORD IN A HIDDEN TLABEL. IS THIS SECURE

· #4

Three rules, in order of importance:

  1. A program should not contain a password. Ask the user for it.
  2. To let them type it without showing it, use a TEdit with PasswordChar := '*'.
  3. If you must check it later, store a salted hash, never the password itself.

Hidden is not the same as secret. A hidden label is a note under the doormat.

Re: STORING THE PASSWORD IN A HIDDEN TLABEL. IS THIS SECURE

· #5

what if i set the label's font color to the same color as the form. double hidden

Re: STORING THE PASSWORD IN A HIDDEN TLABEL. IS THIS SECURE

· #6

That is the note under the doormat, written in white crayon.

Change both passwords, demo_caps. I've edited the wifi one out of your post. I didn't read it. I read it a little.

Forum rules 1 to 10 apply. Yes, to you.

Go up

Sign in to reply