Click here to Skip to main content
15,880,608 members
Home / Discussions / C#
   

C#

 
AnswerRe: When has the context menu disappeared? Pin
Stephane Rodriguez.2-Nov-02 3:47
Stephane Rodriguez.2-Nov-02 3:47 
GeneralRe: When has the context menu disappeared? Pin
Nnamdi Onyeyiri2-Nov-02 8:06
Nnamdi Onyeyiri2-Nov-02 8:06 
QuestionHow to enforce db access security? Pin
Martin Haesemeyer1-Nov-02 23:23
Martin Haesemeyer1-Nov-02 23:23 
AnswerRe: How to enforce db access security? Pin
leppie1-Nov-02 23:24
leppie1-Nov-02 23:24 
GeneralRe: How to enforce db access security? Pin
Martin Haesemeyer1-Nov-02 23:47
Martin Haesemeyer1-Nov-02 23:47 
GeneralRe: How to enforce db access security? Pin
leppie1-Nov-02 23:58
leppie1-Nov-02 23:58 
GeneralRe: How to enforce db access security? Pin
Martin Haesemeyer2-Nov-02 0:18
Martin Haesemeyer2-Nov-02 0:18 
AnswerRe: How to enforce db access security? Pin
James T. Johnson2-Nov-02 5:04
James T. Johnson2-Nov-02 5:04 
I would create two db user accounts. One with the most basic permissions needed to operate as a normal user. Then create another account that is more privledged.

Store the username/pwd for the first in the program/config file. For the second store just the username and an encrypted version of the password. Base the encryption of the db password on a password you must supply when logging into the program for admin operations. [You need to make sure that when you change the password used to login you re-encrypt the admin db password as well].

A quick look through the Cryptography namespace tells me that the DES algorithm could be used to do what I outline above. There are probably other algorithm's available but that was the first one I found.

James
Sig code stolen from David Wulff

GeneralRe: String Methods Seem Broken Pin
David Stone1-Nov-02 11:25
sitebuilderDavid Stone1-Nov-02 11:25 
QuestionHow to notify the parent? (passing event to the parent) Pin
Zinj1-Nov-02 9:13
sussZinj1-Nov-02 9:13 
AnswerRe: How to notify the parent? (passing event to the parent) Pin
John Fisher1-Nov-02 12:35
John Fisher1-Nov-02 12:35 
GeneralRe: How to notify the parent? (passing event to the parent) Pin
Zinj2-Nov-02 9:32
sussZinj2-Nov-02 9:32 
QuestionBest way to store data? Pin
hammackj1-Nov-02 8:42
hammackj1-Nov-02 8:42 
AnswerRe: Best way to store data? Pin
TigerNinja_1-Nov-02 11:30
TigerNinja_1-Nov-02 11:30 
GeneralEnumerating Severs on Win9x Pin
mikasa1-Nov-02 7:31
mikasa1-Nov-02 7:31 
GeneralRe: Enumerating Severs on Win9x Pin
TigerNinja_1-Nov-02 11:29
TigerNinja_1-Nov-02 11:29 
GeneralRe: Enumerating Severs on Win9x Pin
mikasa1-Nov-02 11:40
mikasa1-Nov-02 11:40 
GeneralBetter RichTextBox (or custom textbox) Pin
Bog1-Nov-02 5:48
Bog1-Nov-02 5:48 
GeneralRe: Better RichTextBox (or custom textbox) Pin
Pete Bassett1-Nov-02 6:30
Pete Bassett1-Nov-02 6:30 
GeneralRe: Better RichTextBox (or custom textbox) Pin
Bog2-Nov-02 5:05
Bog2-Nov-02 5:05 
GeneralRe: Better RichTextBox (or custom textbox) Pin
Pete Bassett3-Nov-02 7:47
Pete Bassett3-Nov-02 7:47 
GeneralRe: Better RichTextBox (or custom textbox) Pin
Philip Fitzsimons1-Nov-02 6:54
Philip Fitzsimons1-Nov-02 6:54 
GeneralRe: Better RichTextBox (or custom textbox) Pin
Stephane Rodriguez.1-Nov-02 7:07
Stephane Rodriguez.1-Nov-02 7:07 
GeneralPassword in a Propertygrid Pin
Andy Hampshire1-Nov-02 4:00
Andy Hampshire1-Nov-02 4:00 
GeneralRe: Password in a Propertygrid Pin
Stephane Rodriguez.1-Nov-02 7:12
Stephane Rodriguez.1-Nov-02 7:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.