Click here to Skip to main content
15,898,134 members
Home / Discussions / C#
   

C#

 
GeneralRe: Best way to read ASCII input Pin
Scott Serl22-Feb-10 10:13
Scott Serl22-Feb-10 10:13 
QuestionReports Pin
muka6622-Feb-10 3:22
muka6622-Feb-10 3:22 
AnswerRe: Reports Pin
Not Active22-Feb-10 3:42
mentorNot Active22-Feb-10 3:42 
GeneralRe: Reports Pin
Anubhava Dimri22-Feb-10 18:18
Anubhava Dimri22-Feb-10 18:18 
QuestionDecrypting a text using Rijndael Pin
3bood.ghzawi22-Feb-10 2:52
3bood.ghzawi22-Feb-10 2:52 
QuestionDecrypting a text using Rijndael Pin
3bood.ghzawi22-Feb-10 2:51
3bood.ghzawi22-Feb-10 2:51 
AnswerRe: Decrypting a text using Rijndael Pin
Not Active22-Feb-10 3:13
mentorNot Active22-Feb-10 3:13 
AnswerRe: Decrypting a text using Rijndael Pin
Keith Barrow22-Feb-10 4:20
professionalKeith Barrow22-Feb-10 4:20 
Your code is unformatted, you need to ensure that the > & <g; appear, rather than &gt; etc.

The problem you are getting is due to extra characters being read from the stream. The length of encrypyted string will always be a multiple of a set length (which itself is a power of two). Our encryption rountine always produces blocks of length 16, So the string "1" as does "12345678901234" would produce an encrypted string 16 hex characters long, "123456789012345" produces 32 character long string. I thnk the actual block size relates to the key and/or the IV value.

In this case, for a string to be decrypted, the count of hex characters must be evenly divisible by 16.
You are probably either reading past the end of the string in the memory stream, or the stream is including padding characters. In either case, you must stop reading before then.
Dalek Dave: There are many words that some find offensive, Homosexuality, Alcoholism, Religion, Visual Basic, Manchester United, Butter.

AnswerRe: Decrypting a text using Rijndael Pin
Luc Pattyn22-Feb-10 4:51
sitebuilderLuc Pattyn22-Feb-10 4:51 
GeneralRe: Decrypting a text using Rijndael Pin
Keith Barrow22-Feb-10 5:03
professionalKeith Barrow22-Feb-10 5:03 
GeneralRe: Decrypting a text using Rijndael Pin
Luc Pattyn22-Feb-10 5:49
sitebuilderLuc Pattyn22-Feb-10 5:49 
QuestionDatatable Pin
jojoba201122-Feb-10 2:36
jojoba201122-Feb-10 2:36 
AnswerRe: Datatable Pin
Not Active22-Feb-10 3:12
mentorNot Active22-Feb-10 3:12 
GeneralRe: Datatable Pin
jojoba201122-Feb-10 4:25
jojoba201122-Feb-10 4:25 
Questionidentify authorised user on web method using c# Pin
dalila y22-Feb-10 2:01
dalila y22-Feb-10 2:01 
AnswerRe: identify authorised user on web method using c# Pin
Not Active22-Feb-10 2:04
mentorNot Active22-Feb-10 2:04 
GeneralRe: identify authorised user on web method using c# Pin
dalila y22-Feb-10 5:27
dalila y22-Feb-10 5:27 
GeneralRe: identify authorised user on web method using c# Pin
Not Active22-Feb-10 5:47
mentorNot Active22-Feb-10 5:47 
QuestionMDI Problem in C#.Net? Pin
Pawan Kiran22-Feb-10 1:58
Pawan Kiran22-Feb-10 1:58 
AnswerRe: MDI Problem in C#.Net? Pin
DaveyM6922-Feb-10 8:39
professionalDaveyM6922-Feb-10 8:39 
GeneralRe: MDI Problem in C#.Net? Pin
Pawan Kiran22-Feb-10 18:15
Pawan Kiran22-Feb-10 18:15 
QuestionParse javascript Pin
Ziga122-Feb-10 1:37
Ziga122-Feb-10 1:37 
AnswerRe: Parse javascript Pin
Not Active22-Feb-10 2:02
mentorNot Active22-Feb-10 2:02 
GeneralRe: Parse javascript Pin
harold aptroot22-Feb-10 2:31
harold aptroot22-Feb-10 2:31 
GeneralRe: Parse javascript Pin
Not Active22-Feb-10 3:09
mentorNot Active22-Feb-10 3:09 

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.