Click here to Skip to main content
15,888,521 members
Home / Discussions / C#
   

C#

 
Question Retrieving the form in Application.Run() ? Pin
Johan Glysing8-Sep-05 4:05
Johan Glysing8-Sep-05 4:05 
AnswerRe: Pin
Stefan Troschuetz8-Sep-05 4:45
Stefan Troschuetz8-Sep-05 4:45 
GeneralRe: Pin
Johan Glysing8-Sep-05 19:04
Johan Glysing8-Sep-05 19:04 
GeneralRe: Pin
Stefan Troschuetz8-Sep-05 20:26
Stefan Troschuetz8-Sep-05 20:26 
GeneralRe: Pin
Anonymous9-Sep-05 3:32
Anonymous9-Sep-05 3:32 
GeneralRe: Pin
Stefan Troschuetz9-Sep-05 3:44
Stefan Troschuetz9-Sep-05 3:44 
QuestionHELP: expose windows form from windows service Pin
SongDog8-Sep-05 3:49
SongDog8-Sep-05 3:49 
AnswerRe: HELP: expose windows form from windows service Pin
Dave Kreskowiak8-Sep-05 6:46
mveDave Kreskowiak8-Sep-05 6:46 
QuestionComposite Key Constraint logic Pin
Anonymous8-Sep-05 3:49
Anonymous8-Sep-05 3:49 
QuestionOpenFileDialog bug?? Pin
john_mcp8-Sep-05 3:31
john_mcp8-Sep-05 3:31 
AnswerRe: OpenFileDialog bug?? Pin
Dave Kreskowiak8-Sep-05 6:43
mveDave Kreskowiak8-Sep-05 6:43 
Questiongot lParam, what to do now? Pin
Lapje8-Sep-05 3:10
Lapje8-Sep-05 3:10 
AnswerRe: got lParam, what to do now? Pin
John Fisher8-Sep-05 7:45
John Fisher8-Sep-05 7:45 
AnswerRe: got lParam, what to do now? Pin
Alex Korchemniy8-Sep-05 10:09
Alex Korchemniy8-Sep-05 10:09 
GeneralRe: got lParam, what to do now? Pin
Lapje9-Sep-05 6:36
Lapje9-Sep-05 6:36 
QuestionBitmap to byte array? Pin
Dr Herbie8-Sep-05 2:46
Dr Herbie8-Sep-05 2:46 
AnswerRe: Bitmap to byte array? Pin
Charlie Williams8-Sep-05 4:32
Charlie Williams8-Sep-05 4:32 
AnswerRe: Bitmap to byte array? Pin
thomasa8-Sep-05 4:39
thomasa8-Sep-05 4:39 
GeneralRe: Bitmap to byte array? Pin
Judah Gabriel Himango8-Sep-05 6:55
sponsorJudah Gabriel Himango8-Sep-05 6:55 
GeneralRe: Bitmap to byte array? Pin
thomasa8-Sep-05 21:34
thomasa8-Sep-05 21:34 
GeneralRe: Bitmap to byte array? Pin
Judah Gabriel Himango9-Sep-05 4:24
sponsorJudah Gabriel Himango9-Sep-05 4:24 
QuestionCryptographicException when instantiating RSACryptoServiceProvider Pin
mav.northwind8-Sep-05 2:35
mav.northwind8-Sep-05 2:35 
AnswerRe: CryptographicException when instantiating RSACryptoServiceProvider Pin
Ashok Dhamija8-Sep-05 4:00
Ashok Dhamija8-Sep-05 4:00 
GeneralRe: CryptographicException when instantiating RSACryptoServiceProvider Pin
mav.northwind8-Sep-05 5:01
mav.northwind8-Sep-05 5:01 
GeneralRe: CryptographicException when instantiating RSACryptoServiceProvider Pin
Ashok Dhamija8-Sep-05 18:36
Ashok Dhamija8-Sep-05 18:36 
In one of my projects, I had used the following flag:
param.Flags = CspProviderFlags.UseDefaultKeyContainer;
instead of using the
param.Flags = CspProviderFlags.UseMachineKeyStore;

Thereafter, instead of storing the key in the Machine Key Store, I had hard-coded the key in my code. Of course, in the version released for outside world, I did not store my private key in the code. But, in a separate version meant for me only, I used the private key (which I used to pre-encrypt certain strings).

For storing the key in the hard-coded form, I used format like this (key not shown here):

string publicKeyXML = @" -------- ";
rsa.FromXmlString(publicKeyXML);


Thereafter, I could easily access the key for any user (whether administrator or otherwise).

I wonder whether a scheme like this could fit in your requirements.

Regards,
Ashok Dhamija
_____________________________
Padam Technologies

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.