Click here to Skip to main content
15,885,546 members
Home / Discussions / C#
   

C#

 
AnswerRe: loading the resources string in C# 2005 Pin
Colin Angus Mackay21-Jan-06 13:14
Colin Angus Mackay21-Jan-06 13:14 
GeneralRe: loading the resources string in C# 2005 Pin
abstarsss21-Jan-06 19:21
abstarsss21-Jan-06 19:21 
GeneralRe: loading the resources string in C# 2005 Pin
abstarsss21-Jan-06 19:29
abstarsss21-Jan-06 19:29 
Questionget running applications Pin
galbit21-Jan-06 9:44
galbit21-Jan-06 9:44 
AnswerRe: get running applications Pin
Judah Gabriel Himango21-Jan-06 14:48
sponsorJudah Gabriel Himango21-Jan-06 14:48 
GeneralRe: get running applications Pin
galbit21-Jan-06 19:37
galbit21-Jan-06 19:37 
GeneralRe: get running applications Pin
Dave Kreskowiak22-Jan-06 9:58
mveDave Kreskowiak22-Jan-06 9:58 
Questionsaving a Private Key for future use. Pin
ranzask21-Jan-06 9:06
ranzask21-Jan-06 9:06 
Hi all,

I am using RSACryptoServiceProvider and RSAPKCS1SignatureFormatter to create private/public keys and signed data with the private key (later decrypt using public key).

i know how to get teh Module and Exponent inorder to send and use it later.
but i also want to get the private key so i can use it many times more.

now i use this code:
byte[] mod=RSA.ExportParameters(true).Modulus;
byte[] exp=RSA.ExportParameters(true).Exponent;
RSAParameters RSAKeyInfo= new RSAParameters(); //create new keyinfo
RSAKeyInfo.Modulus=mod; //set the modulus
RSAKeyInfo.Exponent=exp; //set the exponent

and later i creat new key and import the modulus and exponent.
it is working fine for the public key but if i want to Sign again using that key , i get an exception saying that the new key do not contain the Priavte key.

what can i do? how can i get hold of the Public key?

Thanks alot,
Ran.Big Grin | :-D

R.Z
QuestionHow to make owner data file? Pin
pmasknguyen21-Jan-06 6:47
pmasknguyen21-Jan-06 6:47 
AnswerRe: How to make owner data file? Pin
Dave Kreskowiak21-Jan-06 12:02
mveDave Kreskowiak21-Jan-06 12:02 
QuestionAutoSave Pin
pxp21-Jan-06 5:19
pxp21-Jan-06 5:19 
AnswerRe: AutoSave Pin
WillemM21-Jan-06 6:05
WillemM21-Jan-06 6:05 
GeneralRe: AutoSave Pin
pxp21-Jan-06 7:03
pxp21-Jan-06 7:03 
GeneralRe: AutoSave Pin
Guffa21-Jan-06 10:05
Guffa21-Jan-06 10:05 
GeneralRe: AutoSave Pin
pxp22-Jan-06 1:44
pxp22-Jan-06 1:44 
GeneralRe: AutoSave Pin
pxp22-Jan-06 4:24
pxp22-Jan-06 4:24 
GeneralRe: AutoSave Pin
WillemM22-Jan-06 20:16
WillemM22-Jan-06 20:16 
GeneralRe: AutoSave Pin
WillemM22-Jan-06 20:19
WillemM22-Jan-06 20:19 
GeneralRe: AutoSave Pin
pxp23-Jan-06 9:07
pxp23-Jan-06 9:07 
GeneralRe: AutoSave Pin
Guffa24-Jan-06 1:27
Guffa24-Jan-06 1:27 
GeneralRe: AutoSave Pin
pxp24-Jan-06 3:40
pxp24-Jan-06 3:40 
AnswerRe: AutoSave Pin
Guffa24-Jan-06 23:01
Guffa24-Jan-06 23:01 
GeneralRe: AutoSave Pin
karizmaguy200722-Feb-10 2:01
karizmaguy200722-Feb-10 2:01 
QuestionXML: why use Encoding ? Pin
pxp21-Jan-06 4:40
pxp21-Jan-06 4:40 
AnswerRe: XML: why use Encoding ? Pin
Guffa21-Jan-06 10:15
Guffa21-Jan-06 10:15 

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.