Click here to Skip to main content
15,890,438 members
Home / Discussions / C#
   

C#

 
AnswerRe: generic collections of generic collections - .net 2.0 Pin
led mike5-Mar-07 6:21
led mike5-Mar-07 6:21 
GeneralRe: generic collections of generic collections - .net 2.0 Pin
arkiboys5-Mar-07 6:27
arkiboys5-Mar-07 6:27 
GeneralRe: generic collections of generic collections - .net 2.0 Pin
Judah Gabriel Himango5-Mar-07 7:01
sponsorJudah Gabriel Himango5-Mar-07 7:01 
GeneralRe: generic collections of generic collections - .net 2.0 Pin
arkiboys5-Mar-07 21:32
arkiboys5-Mar-07 21:32 
GeneralRe: generic collections of generic collections - .net 2.0 Pin
led mike5-Mar-07 8:13
led mike5-Mar-07 8:13 
GeneralRe: generic collections of generic collections - .net 2.0 Pin
arkiboys5-Mar-07 19:00
arkiboys5-Mar-07 19:00 
GeneralRe: generic collections of generic collections - .net 2.0 Pin
led mike6-Mar-07 4:24
led mike6-Mar-07 4:24 
QuestionLocking data to user Pin
Dominik Reichl5-Mar-07 5:40
Dominik Reichl5-Mar-07 5:40 
Hello!

I'm trying to write a tool that associates some data with the currently logged on Windows user account. I.e. the encryption key for the file is generated based on the user.

How can I do this?

Of course, just using the user name is bad, because it should also depend on the users password. Unfortunately I haven't found a function to get the user's password (is there one?).

I tried using the System.Security.Cryptography.ProtectedData.Protect function. The problem with this approach is that this function returns a byte array that includes a seed. I.e. when calling this function twice, you'll never get the same results. But this is a requirement, as I want to use its output only as key for my own encryption engine (which offers choice between different algorithms, like AES, Twofish, ...).

Best regards
Dominik



Too many passwords to remember? Try KeePass Password Safe!

AnswerRe: Locking data to user Pin
Dave Kreskowiak5-Mar-07 5:48
mveDave Kreskowiak5-Mar-07 5:48 
QuestionRe: Locking data to user Pin
Dominik Reichl5-Mar-07 5:58
Dominik Reichl5-Mar-07 5:58 
GeneralRe: Locking data to user Pin
Dominik Reichl5-Mar-07 7:54
Dominik Reichl5-Mar-07 7:54 
Questionhow to create SetUp package for my app in VS2005 setup project ? Pin
hdv2125-Mar-07 4:17
hdv2125-Mar-07 4:17 
AnswerRe: how to create SetUp package for my app in VS2005 setup project ? Pin
kubben5-Mar-07 4:55
kubben5-Mar-07 4:55 
Question.TableMappings.Add Pin
arkiboys5-Mar-07 4:15
arkiboys5-Mar-07 4:15 
QuestionScrolling panel while drag & drop picturebox Pin
pettera5-Mar-07 3:47
pettera5-Mar-07 3:47 
QuestionRegex help required Pin
matthias s.5-Mar-07 3:46
matthias s.5-Mar-07 3:46 
AnswerRe: Regex help required Pin
andyharman5-Mar-07 7:02
professionalandyharman5-Mar-07 7:02 
GeneralRe: Regex help required Pin
matthias s.5-Mar-07 7:28
matthias s.5-Mar-07 7:28 
Questionto make checkboxes visible in datagrid C# windows application Pin
salon5-Mar-07 3:36
salon5-Mar-07 3:36 
QuestionHow can I build plugins? Pin
olivervoll5-Mar-07 3:22
olivervoll5-Mar-07 3:22 
AnswerRe: How can I build plugins? Pin
Pete O'Hanlon5-Mar-07 4:10
mvePete O'Hanlon5-Mar-07 4:10 
GeneralRe: How can I build plugins? Pin
olivervoll6-Mar-07 0:26
olivervoll6-Mar-07 0:26 
QuestionUpdating GUI controls from C# Class Library...??? Pin
zinc_z5-Mar-07 2:47
zinc_z5-Mar-07 2:47 
AnswerRe: , Pin
sharpiesharpie5-Mar-07 3:02
sharpiesharpie5-Mar-07 3:02 
GeneralRe: , Pin
zinc_z5-Mar-07 4:55
zinc_z5-Mar-07 4:55 

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.