Click here to Skip to main content
15,899,754 members
Home / Discussions / C#
   

C#

 
GeneralRe: Dynamic Enum Creation Pin
PIEBALDconsult21-Jan-09 7:50
mvePIEBALDconsult21-Jan-09 7:50 
QuestionDrawing only one rectangle, when i moving the mouse on a pictureBox Pin
tschmid8521-Jan-09 3:03
tschmid8521-Jan-09 3:03 
AnswerRe: Drawing only one rectangle, when i moving the mouse on a pictureBox Pin
DaveyM6921-Jan-09 3:39
professionalDaveyM6921-Jan-09 3:39 
AnswerRe: Drawing only one rectangle, when i moving the mouse on a pictureBox Pin
musefan21-Jan-09 5:15
musefan21-Jan-09 5:15 
QuestionManaging senesitive data Pin
Dushan12321-Jan-09 2:41
Dushan12321-Jan-09 2:41 
AnswerRe: Managing senesitive data Pin
musefan21-Jan-09 2:52
musefan21-Jan-09 2:52 
AnswerRe: Managing senesitive data Pin
#realJSOP21-Jan-09 3:12
professional#realJSOP21-Jan-09 3:12 
AnswerRe: Managing senesitive data Pin
Ben Fair21-Jan-09 3:15
Ben Fair21-Jan-09 3:15 
The answer mainly depends on the architecture of the application. Will it be used by many different users that aren't on the same network, or within a local Intranet? What resources will be available to your application to hold that data? You'll have to take those considerations into account in order to determine what is the best option for persisting the data. Regardless of your choice, you are going to need persistent storage of some format to hold the data. Whatever option you decide to go with make sure you store a hash of password values. Personally, I use the .NET MD5 implementation (MD5CryptoServiceProvider) to hash passwords, but the .NET Framework includes a number of hash algorithm implementations. In practice, you should persist the hash rather than the actual password and when authenticating, you take the hash of whatever the user enters and compare it against the hash that was persisted; if it matches then they entered the correct password. It's not mathematically possible to get the original value from a hash. If you need to secure other data you can use some of the other .NET Cryptography classes to encrypt the data. Either way a number of Symmetric encryption algorithms (aka Secret Key) are included in the .NET framework (the .NET Rijndael implementation is what I usually use). You'll generally need to create your own binary Key and Initialization Vector (IV, for short and commonly referred to as the 'Salt'). The Key and IV lengths vary somewhat for the different algorithms so you'll need to read up on that as you decide on an encryption scheme that works for you. Symmetric encryption requires the same Key and IV be used for decryption as was used to encrypt the data, so it's common to choose a Key and IV for your application that are pretty much static. If you need more flexibility than that you can look into the Asymmetric encryption (aka Public key/Private key) but those generally require more complexity, however there are certainly situations that call for it.

Keep It Simple Stupid! (KISS)

QuestionWebBrowser Control C# (VS 2003) Pin
Member 231211721-Jan-09 2:02
Member 231211721-Jan-09 2:02 
AnswerRe: WebBrowser Control C# (VS 2003) Pin
Eddy Vluggen21-Jan-09 3:38
professionalEddy Vluggen21-Jan-09 3:38 
GeneralRe: WebBrowser Control C# (VS 2003) Pin
Member 231211721-Jan-09 20:04
Member 231211721-Jan-09 20:04 
GeneralRe: WebBrowser Control C# (VS 2003) Pin
Eddy Vluggen21-Jan-09 20:59
professionalEddy Vluggen21-Jan-09 20:59 
GeneralRe: WebBrowser Control C# (VS 2003) Pin
Member 231211725-Jan-09 23:10
Member 231211725-Jan-09 23:10 
QuestionDatagridview heater Pin
ArielR21-Jan-09 1:40
ArielR21-Jan-09 1:40 
AnswerRe: Datagridview heater Pin
musefan21-Jan-09 1:50
musefan21-Jan-09 1:50 
GeneralRe: Datagridview heater Pin
musefan21-Jan-09 1:57
musefan21-Jan-09 1:57 
GeneralRe: Datagridview heater Pin
ArielR21-Jan-09 2:37
ArielR21-Jan-09 2:37 
AnswerRe: Datagridview heater Pin
Nagy Vilmos21-Jan-09 1:51
professionalNagy Vilmos21-Jan-09 1:51 
AnswerThat's wonderful! Pin
CPallini21-Jan-09 1:52
mveCPallini21-Jan-09 1:52 
GeneralRe: That's wonderful! Pin
ArielR21-Jan-09 2:45
ArielR21-Jan-09 2:45 
JokeRe: Datagridview heater Pin
Manas Bhardwaj21-Jan-09 1:53
professionalManas Bhardwaj21-Jan-09 1:53 
JokeRe: Datagridview heater Pin
musefan21-Jan-09 1:56
musefan21-Jan-09 1:56 
QuestionGet values from binding.position 0 without changinbg binding position? Pin
kanchoette21-Jan-09 1:27
kanchoette21-Jan-09 1:27 
AnswerRe: Get values from binding.position 0 without changinbg binding position? Pin
ArielR21-Jan-09 2:29
ArielR21-Jan-09 2:29 
GeneralRe: Get values from binding.position 0 without changinbg binding position? Pin
kanchoette21-Jan-09 3:18
kanchoette21-Jan-09 3:18 

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.