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

Algorithms

 
GeneralRe: Caculate time left for data transfer Pin
Luc Pattyn17-Feb-09 13:51
sitebuilderLuc Pattyn17-Feb-09 13:51 
AnswerRe: Caculate time left for data transfer Pin
Leonardo Muzzi17-Feb-09 9:12
Leonardo Muzzi17-Feb-09 9:12 
Questionthinning algorithm Pin
Swati Khanna17-Feb-09 1:40
Swati Khanna17-Feb-09 1:40 
AnswerRe: thinning algorithm Pin
riced17-Feb-09 2:33
riced17-Feb-09 2:33 
AnswerRe: thinning algorithm Pin
Andrew Kirillov5-Mar-09 0:49
Andrew Kirillov5-Mar-09 0:49 
QuestionAES Rijndael Cryptography fails Pin
Leonardo Muzzi16-Feb-09 10:16
Leonardo Muzzi16-Feb-09 10:16 
GeneralRe: App fails to use AES Rijndael Cryptography correctly? Pin
Luc Pattyn16-Feb-09 10:41
sitebuilderLuc Pattyn16-Feb-09 10:41 
AnswerRe: App fails to use AES Rijndael Cryptography correctly? Pin
Leonardo Muzzi17-Feb-09 3:13
Leonardo Muzzi17-Feb-09 3:13 
Thanks for the advice, that was the problem. In fact, the real problem is that PaddingMode.PKCS7 doesn't work properly. Using this mode, in the roundtrip, I always get the error "PKCS7 padding is invalid and cannot be removed.". That's why I tried to do the padding myself, but it is not possible to do it in the string, because of the special characters that takes more than one byte.

So, the solution was: I implemented the PKCS7 myself, in the byte array, right before the encryption, using PaddingMode.None for the RijndaelManaged. That worked fine. However, in the decryption, it was not necessary to implement it, the PaddingMode.PKCS7 worked correctly.

Thanks to this article, "Notes On Padding" section:
http://www.codeproject.com/KB/security/Cryptor.aspx[^]
QuestionCreating graph of file usage in build tree Pin
Adam Dare13-Feb-09 3:38
Adam Dare13-Feb-09 3:38 
AnswerRe: Creating graph of file usage in build tree Pin
ky_rerun24-Feb-09 15:16
ky_rerun24-Feb-09 15:16 
GeneralRe: Creating graph of file usage in build tree Pin
Adam Dare24-Feb-09 18:35
Adam Dare24-Feb-09 18:35 
GeneralRe: Creating graph of file usage in build tree Pin
ky_rerun24-Feb-09 20:24
ky_rerun24-Feb-09 20:24 
GeneralRe: Creating graph of file usage in build tree Pin
Adam Dare25-Feb-09 4:13
Adam Dare25-Feb-09 4:13 
Questionerror correction Pin
Deresen12-Feb-09 2:02
Deresen12-Feb-09 2:02 
AnswerRe: error correction Pin
Ravadre12-Feb-09 4:44
Ravadre12-Feb-09 4:44 
GeneralRe: error correction Pin
Deresen12-Feb-09 5:07
Deresen12-Feb-09 5:07 
GeneralRe: error correction Pin
Ravadre12-Feb-09 6:45
Ravadre12-Feb-09 6:45 
AnswerRe: error correction Pin
Arash Partow12-Feb-09 12:04
Arash Partow12-Feb-09 12:04 
GeneralRe: error correction Pin
Deresen12-Feb-09 21:04
Deresen12-Feb-09 21:04 
AnswerRe: error correction Pin
Arash Partow13-Feb-09 1:14
Arash Partow13-Feb-09 1:14 
GeneralRe: error correction Pin
Deresen13-Feb-09 1:54
Deresen13-Feb-09 1:54 
AnswerRe: error correction Pin
supercat912-Feb-09 12:46
supercat912-Feb-09 12:46 
QuestionStrings issue... Pin
ventomito10-Feb-09 8:25
ventomito10-Feb-09 8:25 
AnswerRe: Strings issue... Pin
cmk10-Feb-09 12:34
cmk10-Feb-09 12:34 
AnswerRe: Strings issue... Pin
Mohammad Dayyan11-Feb-09 0:30
Mohammad Dayyan11-Feb-09 0:30 

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.