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

C#

 
QuestionAnswers please? Pin
NaNg1524110-May-06 8:24
NaNg1524110-May-06 8:24 
QuestionReading Pdf Pin
pirogramci10-May-06 0:44
pirogramci10-May-06 0:44 
AnswerRe: Reading Pdf Pin
Ryan Roberts10-May-06 1:14
Ryan Roberts10-May-06 1:14 
AnswerRe: Reading Pdf Pin
Jax_qqq10-May-06 1:37
Jax_qqq10-May-06 1:37 
QuestionImage Viewer in C# 2.0 Pin
hangto10-May-06 0:39
hangto10-May-06 0:39 
QuestionWindows Service SQL trigger Pin
RhysMG10-May-06 0:14
RhysMG10-May-06 0:14 
QuestionWeb services Error Pin
Ramadas_SST9-May-06 23:56
Ramadas_SST9-May-06 23:56 
QuestionRijndael decryption Pin
davidmgray9-May-06 23:41
davidmgray9-May-06 23:41 
Hi all,

Not a C# or even .net programmer so please bare with me.

Can C# use the Rijendeal/AES block cipher without it beiing imported
from an ASCI file into a keyring?

One of our trading partners is asking to send us files encrypted with
the above cipher. The code they use themselves is show below but I'm
wondering on how & where I'm to store the key values if not on a keyring.

Thanks in advance
Dave


public string DecodeString(byte[] encodedsource)
{
System.Text.UTF8Encoding encoding = new System.Text.UTF8Encoding();
byte[] bytes = encodedsource;

MemoryStream memstream = new MemoryStream();
memstream.Write(bytes, 0, bytes.Length);
memstream.Position = 0;

SymmetricAlgorithm algorithm = SymmetricAlgorithm.Create("RijnDael");
algorithm.Key = key;
algorithm.IV = iv;
ICryptoTransform transform = algorithm.CreateDecryptor();

CryptoStream cryptstream = new CryptoStream(memstream, transform, CryptoStreamMode.Read);

StreamReader reader = new StreamReader(cryptstream);
string returnstring = reader.ReadToEnd();
memstream.Dispose();
reader.Dispose();
cryptstream.Dispose();

return returnstring;
}

AnswerRe: Rijndael decryption Pin
davidmgray9-May-06 23:46
davidmgray9-May-06 23:46 
GeneralRe: Rijndael decryption Pin
Trance Junkie10-May-06 4:20
Trance Junkie10-May-06 4:20 
QuestionHow to change the color of scroll bar in c# desktop Application ? Pin
Jax_qqq9-May-06 23:22
Jax_qqq9-May-06 23:22 
AnswerRe: How to change the color of scroll bar in c# desktop Application ? Pin
alexey N9-May-06 23:45
alexey N9-May-06 23:45 
GeneralRe: How to change the color of scroll bar in c# desktop Application ? Pin
Jax_qqq9-May-06 23:54
Jax_qqq9-May-06 23:54 
GeneralRe: How to change the color of scroll bar in c# desktop Application ? Pin
alexey N10-May-06 0:22
alexey N10-May-06 0:22 
GeneralRe: How to change the color of scroll bar in c# desktop Application ? Pin
Jax_qqq10-May-06 0:37
Jax_qqq10-May-06 0:37 
Questionbrowser application in windows form Pin
ranandbe9-May-06 23:18
ranandbe9-May-06 23:18 
AnswerRe: browser application in windows form Pin
Ravi Bhavnani10-May-06 4:22
professionalRavi Bhavnani10-May-06 4:22 
QuestionOpen "Windows Image and Fax Viewer" Pin
Greeky9-May-06 23:13
Greeky9-May-06 23:13 
QuestionQuadratic Equation Pin
Jailan9-May-06 23:02
Jailan9-May-06 23:02 
AnswerRe: Quadratic Equation Pin
Cristoff9-May-06 23:14
Cristoff9-May-06 23:14 
QuestionRichTextBox question Pin
Cristoff9-May-06 22:50
Cristoff9-May-06 22:50 
AnswerRe: RichTextBox question Pin
Office Lineman10-May-06 6:22
Office Lineman10-May-06 6:22 
GeneralRe: RichTextBox question Pin
Cristoff14-May-06 4:59
Cristoff14-May-06 4:59 
QuestionHow to access the outlook Address Book Pin
AnnnS9-May-06 22:37
AnnnS9-May-06 22:37 
AnswerRe: How to access the outlook Address Book Pin
Robert Rohde9-May-06 22:42
Robert Rohde9-May-06 22:42 

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.