Editboxes show unknown chars as ??
-
How can i remove this for a encryption program it won't let me make it so it shows up NOT as a '?'? Any help?
or even better make it show up as a hex char i dont know how though any ideas? - LiquidKnight
-
How can i remove this for a encryption program it won't let me make it so it shows up NOT as a '?'? Any help?
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 theToBase64Transform
andFromBase64Transform
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-----