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

C#

 
QuestionSerialization Pin
Paul Unsworth19-Mar-09 1:03
Paul Unsworth19-Mar-09 1:03 
AnswerRe: Serialization Pin
Cracked-Down19-Mar-09 1:10
Cracked-Down19-Mar-09 1:10 
AnswerRe: Serialization Pin
Cracked-Down19-Mar-09 1:23
Cracked-Down19-Mar-09 1:23 
GeneralRe: Serialization Pin
Paul Unsworth19-Mar-09 1:27
Paul Unsworth19-Mar-09 1:27 
GeneralRe: Serialization Pin
Cracked-Down19-Mar-09 2:10
Cracked-Down19-Mar-09 2:10 
QuestionEncrypt bitmap image for C# Windows application [modified] Pin
nudma19-Mar-09 0:59
nudma19-Mar-09 0:59 
AnswerRe: Encrypt bitmap image for C# Windows application Pin
Michael Bookatz19-Mar-09 1:17
Michael Bookatz19-Mar-09 1:17 
AnswerRe: Encrypt bitmap image for C# Windows application Pin
Henry Minute19-Mar-09 6:23
Henry Minute19-Mar-09 6:23 
I have not done anything with encryption for a long time. So this is not guaranteed to work.

I think your problem is in the declaration of encrypted.

Instead of:
    byte[] encrypted = new byte[130000];
encrypted =  rsaCSP.Encrypt(toEncrypt, false);


try:

byte[] encrypted = rsaCSP.Encrypt(toEncrypt, false);


After all you do not know in advance the length of the byte-array thet encrypt will return, so why set a length in the declaration.

Good luck!

Henry Minute

Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”

GeneralRe: Encrypt bitmap image for C# Windows application Pin
nudma19-Mar-09 7:13
nudma19-Mar-09 7:13 
GeneralRe: Encrypt bitmap image for C# Windows application Pin
Henry Minute19-Mar-09 7:31
Henry Minute19-Mar-09 7:31 
GeneralRe: Encrypt bitmap image for C# Windows application Pin
nudma24-Mar-09 6:42
nudma24-Mar-09 6:42 
QuestionString to int Pin
mrithula818-Mar-09 23:47
mrithula818-Mar-09 23:47 
AnswerRe: String to int Pin
musefan18-Mar-09 23:50
musefan18-Mar-09 23:50 
GeneralRe: String to int Pin
Michael Bookatz19-Mar-09 0:54
Michael Bookatz19-Mar-09 0:54 
GeneralRe: String to int Pin
Mohammad Dayyan19-Mar-09 1:03
Mohammad Dayyan19-Mar-09 1:03 
GeneralRe: String to int Pin
musefan19-Mar-09 1:08
musefan19-Mar-09 1:08 
GeneralRe: String to int Pin
Michael Bookatz19-Mar-09 1:14
Michael Bookatz19-Mar-09 1:14 
GeneralRe: String to int Pin
DaveyM6919-Mar-09 2:09
professionalDaveyM6919-Mar-09 2:09 
GeneralRe: String to int Pin
musefan19-Mar-09 2:15
musefan19-Mar-09 2:15 
GeneralRe: String to int Pin
Mirko198019-Mar-09 1:11
Mirko198019-Mar-09 1:11 
GeneralRe: String to int Pin
Michael Bookatz19-Mar-09 1:16
Michael Bookatz19-Mar-09 1:16 
GeneralRe: String to int Pin
Mirko198019-Mar-09 1:36
Mirko198019-Mar-09 1:36 
GeneralRe: String to int Pin
Michael Bookatz19-Mar-09 2:11
Michael Bookatz19-Mar-09 2:11 
GeneralRe: String to int Pin
DaveyM6919-Mar-09 2:11
professionalDaveyM6919-Mar-09 2:11 
AnswerRe: String to int Pin
DaveyM6919-Mar-09 0:18
professionalDaveyM6919-Mar-09 0:18 

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.