Click here to Skip to main content
15,891,184 members
Home / Discussions / C#
   

C#

 
GeneralRe: windows service set up issue Pin
sujithapril6-Aug-07 7:15
sujithapril6-Aug-07 7:15 
GeneralRe: windows service set up issue Pin
PaulPrice6-Aug-07 21:43
PaulPrice6-Aug-07 21:43 
QuestionPlace form 10px from right side of screen. Pin
jafingi5-Aug-07 7:46
jafingi5-Aug-07 7:46 
AnswerRe: Place form 10px from right side of screen. Pin
Hessam Jalali5-Aug-07 8:58
Hessam Jalali5-Aug-07 8:58 
AnswerRe: Place form 10px from right side of screen. Pin
Luc Pattyn5-Aug-07 8:59
sitebuilderLuc Pattyn5-Aug-07 8:59 
AnswerRe: Place form 10px from right side of screen. Pin
jafingi5-Aug-07 9:38
jafingi5-Aug-07 9:38 
QuestionAsymetric Cryptography Problem Pin
unforgiven_wild_rose5-Aug-07 5:11
unforgiven_wild_rose5-Aug-07 5:11 
AnswerRe: Asymetric Cryptography Problem Pin
Hessam Jalali5-Aug-07 6:27
Hessam Jalali5-Aug-07 6:27 
Asymmetric keys can be created using ToXmlString() method
and can be retrieved using FromXmlString method

it can be done like this:

<br />
AsymmetricAlgorithm asym=AsymmetricAlgorithm.Create();<br />
string myCode=asym.ToXmlString(true);//if true contains private params<br />
<br />
RSACryptoServiceProvider rsa=new RSACryptoServiceProvider();<br />
rsa.FromXmlSring(myCode);<br />
<br />
//you can use it now<br />
<br />


and if you want the parameters you can use ExportParameters
and of course for converting it to xmlKey you can use ToXmlString again.

if you want get only the key (modulus) part before it you can create the complete key using a little xml operations or filling RSAParameters and importing it using ImportParameters method.

hope the post would be useful
good luck
GeneralRe: Asymetric Cryptography Problem Pin
unforgiven_wild_rose5-Aug-07 20:50
unforgiven_wild_rose5-Aug-07 20:50 
GeneralRe: Asymetric Cryptography Problem Pin
Hessam Jalali6-Aug-07 1:02
Hessam Jalali6-Aug-07 1:02 
GeneralRe: Asymetric Cryptography Problem Pin
unforgiven_wild_rose6-Aug-07 23:52
unforgiven_wild_rose6-Aug-07 23:52 
QuestionComboBox In DataGridView Pin
Thaer Hamael5-Aug-07 4:21
Thaer Hamael5-Aug-07 4:21 
QuestionTry to use C# code in C++ code as com instance ... Pin
Yanshof5-Aug-07 1:56
Yanshof5-Aug-07 1:56 
QuestionReading file as binary. Success. But...... Pin
Life as a Coder5-Aug-07 1:12
Life as a Coder5-Aug-07 1:12 
AnswerRe: Reading file as binary. Success. But...... Pin
Colin Angus Mackay5-Aug-07 1:27
Colin Angus Mackay5-Aug-07 1:27 
NewsRe: Reading file as binary. Success. But...... Pin
Life as a Coder5-Aug-07 1:35
Life as a Coder5-Aug-07 1:35 
AnswerRe: Reading file as binary. Success. But...... Pin
Luc Pattyn5-Aug-07 1:56
sitebuilderLuc Pattyn5-Aug-07 1:56 
Questionhow to detetmine that sql was installed on computer or not ? Pin
hdv2125-Aug-07 1:05
hdv2125-Aug-07 1:05 
AnswerRe: how to detetmine that sql was installed on computer or not ? Pin
Developer6115-Aug-07 1:14
Developer6115-Aug-07 1:14 
GeneralRe: how to detetmine that sql was installed on computer or not ? Pin
Colin Angus Mackay5-Aug-07 1:24
Colin Angus Mackay5-Aug-07 1:24 
AnswerRe: how to detetmine that sql was installed on computer or not ? Pin
Colin Angus Mackay5-Aug-07 1:33
Colin Angus Mackay5-Aug-07 1:33 
AnswerRe: how to detetmine that sql was installed on computer or not ? Pin
Paul Conrad5-Aug-07 5:06
professionalPaul Conrad5-Aug-07 5:06 
QuestionCrystal Report working with generic collections Pin
Developer6114-Aug-07 22:44
Developer6114-Aug-07 22:44 
Questionwhat is exe of search option in win xp Pin
San@Coding4-Aug-07 22:11
San@Coding4-Aug-07 22:11 
AnswerRe: what is exe of search option in win xp Pin
Luc Pattyn4-Aug-07 23:56
sitebuilderLuc Pattyn4-Aug-07 23:56 

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.