Click here to Skip to main content
16,004,977 members
Home / Discussions / C#
   

C#

 
AnswerRe: converting an image from ImgPtr to Bitmap Pin
Christian Graus27-Nov-07 19:11
protectorChristian Graus27-Nov-07 19:11 
GeneralRe: converting an image from ImgPtr to Bitmap Pin
peter_grigg27-Nov-07 19:47
peter_grigg27-Nov-07 19:47 
QuestionRe: converting image from ImgPtr to Bitmap Pin
peter_grigg27-Nov-07 19:49
peter_grigg27-Nov-07 19:49 
AnswerRe: converting an image from ImgPtr to Bitmap Pin
m@u27-Nov-07 21:03
m@u27-Nov-07 21:03 
QuestionRegarding creation of table structure in word from C#.net. Pin
Ron.S27-Nov-07 18:52
Ron.S27-Nov-07 18:52 
AnswerRe: Regarding creation of table structure in word from C#.net. Pin
Paul Conrad27-Nov-07 18:55
professionalPaul Conrad27-Nov-07 18:55 
GeneralRe: Regarding creation of table structure in word from C#.net. Pin
Ron.S27-Nov-07 18:59
Ron.S27-Nov-07 18:59 
QuestionEncrypting Problem Pin
kingletas27-Nov-07 17:43
kingletas27-Nov-07 17:43 
Hey all,

Actually i should say that i have a Decrypting problem Frown | :-( !

I am trying to use a certificate to prove the client/server identity in my application. I was sending a welcome message from the server to the client, encryption/decryption worked smoothly, but this message is just a string like the client number, name of the computer where the server is running and all that...

Now when i am doing this:

Publisher publisher = new Publisher(new Init().Certificate());
byte[] message = Encoding.ASCII.GetBytes(new Encrypting().Encrypt(new Init().GetRawCertData(), password));
....

and sending it over the "Network", i am getting a bad data exception... something about a wrong character in the Base64 String.
I am sending fixed length bytes[] and when i am just sending strings it works. But when i try to change the type of data to send it messes up.


My logic to Encrypt/Decrypt is create an instance of the algorithm to use, i use the login password to encrypt/decrypt and i init the key and IV of the algorithm with them, a memory stream and the crypto stream... and return an array of bytes.

Maybe i am doing something wrong, any idea of how to use the certificate better, I am extremely new to Certificates and Digital Signatures. I tried SSL Stream but i could not make work Frown | :-( .

Thanks in advanceBig Grin | :-D !

Best regards!!!

Luis E Tineo S

AnswerRe: Encrypting Problem Pin
Paul Conrad28-Nov-07 14:37
professionalPaul Conrad28-Nov-07 14:37 
QuestionHow to refresh child picturebox when moving (with mouse) on parent picturebox. Pin
Chintan.Desai27-Nov-07 17:39
Chintan.Desai27-Nov-07 17:39 
AnswerRe: Problem with "A low-level audio player in C#" Pin
Christian Graus27-Nov-07 19:14
protectorChristian Graus27-Nov-07 19:14 
QuestionTextbox and Integer Pin
MasterSharp27-Nov-07 15:34
MasterSharp27-Nov-07 15:34 
AnswerRe: Textbox and Integer Pin
Luc Pattyn27-Nov-07 15:50
sitebuilderLuc Pattyn27-Nov-07 15:50 
GeneralRe: Textbox and Integer Pin
MasterSharp27-Nov-07 15:54
MasterSharp27-Nov-07 15:54 
QuestionMemory Resource for a reader [modified] Pin
Vanidor27-Nov-07 14:42
Vanidor27-Nov-07 14:42 
AnswerRe: Memory Resource for a reader Pin
TJoe29-Nov-07 2:23
TJoe29-Nov-07 2:23 
QuestionSurrounding cities functionality Pin
cliffr195427-Nov-07 13:45
professionalcliffr195427-Nov-07 13:45 
AnswerRe: Surrounding cities functionality Pin
Colin Angus Mackay27-Nov-07 14:08
Colin Angus Mackay27-Nov-07 14:08 
QuestionProgram Complete Pin
MasterSharp27-Nov-07 13:18
MasterSharp27-Nov-07 13:18 
AnswerRe: Program Complete Pin
Christian Graus27-Nov-07 19:15
protectorChristian Graus27-Nov-07 19:15 
QuestionC# Factory Pattern Pin
Jeffrey Walton27-Nov-07 12:47
Jeffrey Walton27-Nov-07 12:47 
AnswerRe: C# Factory Pattern Pin
martin_hughes27-Nov-07 13:43
martin_hughes27-Nov-07 13:43 
GeneralRe: C# Factory Pattern Pin
Jeffrey Walton27-Nov-07 14:50
Jeffrey Walton27-Nov-07 14:50 
GeneralRe: C# Factory Pattern Pin
martin_hughes28-Nov-07 3:19
martin_hughes28-Nov-07 3:19 
QuestionSimple question about ending loops Pin
falles0127-Nov-07 12:25
falles0127-Nov-07 12:25 

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.