Click here to Skip to main content
15,921,577 members
Home / Discussions / C#
   

C#

 
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 
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 
I've just found a solution and wanted to quickly let you know it, in case it's interesting for you, too:

First, a random byte array is generated using a cryptographically secure random number generator. This is the key used for encryption. It is protected using ProtectedData.Protect with the DataProtectionScope.CurrentUser option and written to the registry.

When loading, the protected key is retrieved from the registry, unprotected using ProtectedData.Unprotect and used as decryption key for our file.

I'm not sure what data ProtectedData is using, but it seems that the password can be changed, without making the ProtectedData behavior change, i.e. the user's password actually doesn't matter. Same applies to the user name. Probably Windows keeps some secret key for each user, which we can't access manually.

Best regards
Dominik



Too many passwords to remember? Try KeePass Password Safe!

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 
GeneralRe: , Pin
Pete O'Hanlon5-Mar-07 5:08
mvePete O'Hanlon5-Mar-07 5:08 
QuestionSmpp Pin
saltcode5-Mar-07 1:32
professionalsaltcode5-Mar-07 1:32 
AnswerRe: Smpp Pin
sharpiesharpie5-Mar-07 3:02
sharpiesharpie5-Mar-07 3:02 

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.