AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Keep stored password in a file?

Ein Thema von user · begonnen am 28. Sep 2010 · letzter Beitrag vom 29. Sep 2010
Antwort Antwort
user

Registriert seit: 13. Jul 2010
25 Beiträge
 
Delphi 2 Desktop
 
#1

Keep stored password in a file?

  Alt 28. Sep 2010, 10:27
Hi,

I want my program has password confirmation to open a menu. The admin of the PC can set the password. Everyone have to enter password to open that menu. Admin and guest can change the password as long as they know the current password. I want to store the encrypted password in a key file.

What happen if guest delete the key file? What happen if guest replace the key file with the original key file (contain empty password)? The effect is my program will have empty password

I need some suggestions here about the concept / scheme about my questions.

Thanks.

Geändert von user (28. Sep 2010 um 10:29 Uhr)
  Mit Zitat antworten Zitat
Chillkröte

Registriert seit: 20. Aug 2008
34 Beiträge
 
Delphi 2010 Architect
 
#2

AW: Keep stored password in a file?

  Alt 28. Sep 2010, 11:58
what if you set the file's attribute to write-protected / read-only?
  Mit Zitat antworten Zitat
Reinhard Kern

Registriert seit: 22. Okt 2006
772 Beiträge
 
#3

AW: Keep stored password in a file?

  Alt 29. Sep 2010, 00:41
Hi,

let the user open the menu only if the password is not empty. Of course he can reset the password to empty, at least by a re-installation, if you deliver or first-install the software without password. I can see no protection against this, since i can install on a newly formatted partition without any history.

regards Reinhard
  Mit Zitat antworten Zitat
Benutzerbild von cookie22
cookie22

Registriert seit: 28. Jun 2006
Ort: Düsseldorf
936 Beiträge
 
Delphi XE2 Professional
 
#4

AW: Keep stored password in a file?

  Alt 29. Sep 2010, 03:21
you could hide a checksum (md5, sha1 or what ever. btw. never store the real password), in the registry. if this is not secure enough, you could place the checksum on a secure server in the network.
Gruß
Cookie
  Mit Zitat antworten Zitat
Satty67

Registriert seit: 24. Feb 2007
Ort: Baden
1.566 Beiträge
 
Delphi 2007 Professional
 
#5

AW: Keep stored password in a file?

  Alt 29. Sep 2010, 06:51
For installation, your program do need administrator rights. The hashed or encrypted password is stored in administrators AppData and a copy of it in AllUsersData.

If the copy in AllUsersData is lost, the menu is locked, can only be restored by the administrator from admins AppData.
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 10:41 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz