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

C#

 
QuestionHow can i make an event on the scrollbar of the TreeView Pin
amr_tahlawi21-Apr-04 11:49
amr_tahlawi21-Apr-04 11:49 
AnswerRe: How can i make an event on the scrollbar of the TreeView Pin
Heath Stewart21-Apr-04 12:26
protectorHeath Stewart21-Apr-04 12:26 
GeneralForms.ComboBox Pin
yaakov7721-Apr-04 11:02
yaakov7721-Apr-04 11:02 
GeneralRe: Forms.ComboBox Pin
Michael Wolski21-Apr-04 18:23
Michael Wolski21-Apr-04 18:23 
GeneralRe: Forms.ComboBox Pin
yaakov7721-Apr-04 22:55
yaakov7721-Apr-04 22:55 
Generalc# RSACryptoServiceProvider encryption - stored passwords Pin
judyvjudy21-Apr-04 9:57
judyvjudy21-Apr-04 9:57 
GeneralRe: c# RSACryptoServiceProvider encryption - stored passwords Pin
Heath Stewart21-Apr-04 10:14
protectorHeath Stewart21-Apr-04 10:14 
GeneralRe: c# RSACryptoServiceProvider encryption - stored passwords Pin
judyvjudy21-Apr-04 11:56
judyvjudy21-Apr-04 11:56 
Hi -

The RSADecrypt is:

static public byte[] RSADecrypt(byte[] DataToDecrypt, RSAParameters RSAKeyInfo,bool DoOAEPPadding)
{
try
{
//Create a new instance of RSACryptoServiceProvider.
RSACryptoServiceProvider RSA = new RSACryptoServiceProvider();

//Import the RSA Key information. This needs
//to include the private key information.
RSA.ImportParameters(RSAKeyInfo);

//Decrypt the passed byte array and specify OAEP padding.
//OAEP padding is only available on Microsoft Windows XP or
//later.
return RSA.Decrypt(DataToDecrypt, DoOAEPPadding);
}
//Catch and display a CryptographicException
//to the console.
catch(CryptographicException e)
{
System.Windows.Forms.MessageBox.Show(e.ToString());

return null;
}
} //end RSADecrypt


***** The exception is thrown at the return RSA.Decrypt(DataToDecrypt, DoOAEPPadding);

statement.

Thanks for your help!
JK Smile | :)


JK
GeneralRe: c# RSACryptoServiceProvider encryption - stored passwords Pin
Heath Stewart21-Apr-04 12:22
protectorHeath Stewart21-Apr-04 12:22 
QuestionHow to access the Inner class in C#? Pin
Anonymous21-Apr-04 9:54
Anonymous21-Apr-04 9:54 
AnswerRe: How to access the Inner class in C#? Pin
Heath Stewart21-Apr-04 10:08
protectorHeath Stewart21-Apr-04 10:08 
AnswerRe: How to access the Inner class in C#? Pin
scadaguy21-Apr-04 10:11
scadaguy21-Apr-04 10:11 
AnswerRe: How to access the Inner class in C#? Pin
Stefan Troschuetz21-Apr-04 20:43
Stefan Troschuetz21-Apr-04 20:43 
GeneralUrgent.. need a sw that cuts video into images and compatible with .NET Pin
MDM_RVS21-Apr-04 9:26
MDM_RVS21-Apr-04 9:26 
GeneralPivotTable and DataSet Pin
hxxbin21-Apr-04 8:16
hxxbin21-Apr-04 8:16 
GeneralRe: PivotTable and DataSet Pin
Heath Stewart21-Apr-04 8:53
protectorHeath Stewart21-Apr-04 8:53 
GeneralRe: PivotTable and DataSet Pin
hxxbin22-Apr-04 4:47
hxxbin22-Apr-04 4:47 
GeneralRe: PivotTable and DataSet Pin
Heath Stewart22-Apr-04 4:56
protectorHeath Stewart22-Apr-04 4:56 
GeneralI need an example of application.. Pin
benqazou21-Apr-04 8:12
benqazou21-Apr-04 8:12 
GeneralRe: I need an example of application.. Pin
Heath Stewart21-Apr-04 8:42
protectorHeath Stewart21-Apr-04 8:42 
GeneralRe: I need an example of application.. Pin
Andrew McCarter21-Apr-04 8:50
Andrew McCarter21-Apr-04 8:50 
Questionhow do i change the papersize to legal Pin
cmarmr21-Apr-04 8:07
cmarmr21-Apr-04 8:07 
AnswerRe: how do i change the papersize to legal Pin
Heath Stewart21-Apr-04 8:41
protectorHeath Stewart21-Apr-04 8:41 
GeneralRe: how do i change the papersize to legal Pin
cmarmr21-Apr-04 9:49
cmarmr21-Apr-04 9:49 
GeneralRe: how do i change the papersize to legal Pin
Heath Stewart21-Apr-04 10:06
protectorHeath Stewart21-Apr-04 10:06 

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.