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

C#

 
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
AnswerRe: CryptographicException when instantiating RSACryptoServiceProvider Pin
mav.northwind8-Sep-05 20:28
mav.northwind8-Sep-05 20:28 
QuestionUsing Resources - Command Line Compile vs VS Compile Pin
MrEyes8-Sep-05 2:15
MrEyes8-Sep-05 2:15 
Questionhave some method in a exe file.but I want to use them in another project Pin
jzb8-Sep-05 0:28
jzb8-Sep-05 0:28 
AnswerRe: have some method in a exe file.but I want to use them in another project Pin
enjoycrack8-Sep-05 1:43
enjoycrack8-Sep-05 1:43 
AnswerRe: have some method in a exe file.but I want to use them in another project Pin
Daniel Grunwald8-Sep-05 3:47
Daniel Grunwald8-Sep-05 3:47 
AnswerRe: have some method in a exe file.but I want to use them in another project Pin
mav.northwind9-Sep-05 12:31
mav.northwind9-Sep-05 12:31 
QuestionCreating conditional windows application Pin
Fredy8-Sep-05 0:19
Fredy8-Sep-05 0:19 
AnswerRe: Creating conditional windows application Pin
Ashok Dhamija8-Sep-05 3:38
Ashok Dhamija8-Sep-05 3:38 
AnswerRe: Creating conditional windows application Pin
Patric_J8-Sep-05 6:13
Patric_J8-Sep-05 6:13 
Questionmy console application doesn't run on other pc Pin
Sasuko8-Sep-05 0:04
Sasuko8-Sep-05 0:04 
AnswerRe: my console application doesn't run on other pc Pin
Michael P Butler8-Sep-05 0:23
Michael P Butler8-Sep-05 0:23 
GeneralRe: my console application doesn't run on other pc Pin
Sasuko8-Sep-05 3:40
Sasuko8-Sep-05 3:40 
GeneralRe: my console application doesn't run on other pc Pin
Ashok Dhamija8-Sep-05 4:18
Ashok Dhamija8-Sep-05 4:18 
Questionhow can i get filed from C3 Form to Crystal Pin
Anonymous7-Sep-05 23:59
Anonymous7-Sep-05 23:59 
QuestionDataGrid.DataSource customization Pin
Corax7-Sep-05 23:55
Corax7-Sep-05 23:55 
QuestionHow 2 select best display resolution? Pin
majidbhutta7-Sep-05 23:01
majidbhutta7-Sep-05 23:01 
AnswerRe: How 2 select best display resolution? Pin
Dave Kreskowiak8-Sep-05 1:53
mveDave Kreskowiak8-Sep-05 1:53 

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.