Click here to Skip to main content
15,908,166 members
Home / Discussions / C#
   

C#

 
AnswerRe: Who can help me about this question? Pin
je_gonzalez16-Jan-04 17:18
je_gonzalez16-Jan-04 17:18 
GeneralRe: Who can help me about this question? Pin
Daniel Turini17-Jan-04 5:03
Daniel Turini17-Jan-04 5:03 
GeneralRe: Who can help me about this question? Pin
je_gonzalez17-Jan-04 8:57
je_gonzalez17-Jan-04 8:57 
GeneralDatagrid and c# Pin
caheo16-Jan-04 14:08
caheo16-Jan-04 14:08 
GeneralRe: Datagrid and c# Pin
Heath Stewart16-Jan-04 19:29
protectorHeath Stewart16-Jan-04 19:29 
QuestionEditboxes show unknown chars as ?? Pin
Anonymous16-Jan-04 14:02
Anonymous16-Jan-04 14:02 
AnswerRe: Editboxes show unknown chars as ?? Pin
LiquidKnight16-Jan-04 14:06
LiquidKnight16-Jan-04 14:06 
AnswerRe: Editboxes show unknown chars as ?? Pin
Heath Stewart16-Jan-04 19:22
protectorHeath Stewart16-Jan-04 19:22 
You shouldn't be trying to display encrypted blocks in a TextBox - it's always binary until encoded in base64 or something else (base64 is most common, though).

See the ToBase64Transform and FromBase64Transform classes in the .NET base class library. The class documentation also includes a couple of good samples for how to use these two classes. You should then have no problems displaying cipher text.

Just as examples, consider PGP (http://www.pgp.com[^]): in order to send plain-text cipher text as email (it's primary use is for communications) it must be encoded. This is currently done using base64. Or when you sign-up for an SSL certificate your request must be sent using a base64 encoded public key.

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralGive name to table from stored procedure Pin
laphijia16-Jan-04 8:29
laphijia16-Jan-04 8:29 
GeneralRe: Give name to table from stored procedure Pin
Rocky Moore16-Jan-04 8:44
Rocky Moore16-Jan-04 8:44 
GeneralRe: Give name to table from stored procedure Pin
Guillermo Rivero16-Jan-04 12:51
Guillermo Rivero16-Jan-04 12:51 
GeneralRe: Give name to table from stored procedure Pin
Heath Stewart16-Jan-04 19:18
protectorHeath Stewart16-Jan-04 19:18 
GeneralLearned something new.. Pin
Rocky Moore16-Jan-04 8:14
Rocky Moore16-Jan-04 8:14 
GeneralRe: Learned something new.. Pin
Mazdak16-Jan-04 8:22
Mazdak16-Jan-04 8:22 
GeneralRe: Learned something new.. Pin
leppie16-Jan-04 9:01
leppie16-Jan-04 9:01 
QuestionHow to test Microphone, Pin
Shahin7716-Jan-04 6:57
Shahin7716-Jan-04 6:57 
AnswerRe: How to test Microphone, Pin
Hauptman(n)16-Jan-04 7:25
Hauptman(n)16-Jan-04 7:25 
GeneralRe: How to test Microphone, Pin
eggie516-Jan-04 11:39
eggie516-Jan-04 11:39 
GeneralRe: How to test Microphone, Pin
Guillermo Rivero16-Jan-04 12:09
Guillermo Rivero16-Jan-04 12:09 
GeneralRe: How to test Microphone, Pin
Hauptman(n)17-Jan-04 0:47
Hauptman(n)17-Jan-04 0:47 
Generalseting focus on a control Pin
elena1234516-Jan-04 6:54
elena1234516-Jan-04 6:54 
GeneralRe: seting focus on a control Pin
Heath Stewart16-Jan-04 7:11
protectorHeath Stewart16-Jan-04 7:11 
Question.NET Bug or bad code ? Pin
Guinness4Strength16-Jan-04 5:11
Guinness4Strength16-Jan-04 5:11 
AnswerRe: .NET Bug or bad code ? Pin
Daniel Turini16-Jan-04 5:20
Daniel Turini16-Jan-04 5:20 
GeneralRe: .NET Bug or bad code ? Pin
Guinness4Strength16-Jan-04 5:29
Guinness4Strength16-Jan-04 5:29 

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.