Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Editboxes show unknown chars as ??

Editboxes show unknown chars as ??

Scheduled Pinned Locked Moved C#
questionsecurityhelp
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Anonymous
    wrote on last edited by
    #1

    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?

    L H 2 Replies Last reply
    0
    • A Anonymous

      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?

      L Offline
      L Offline
      LiquidKnight
      wrote on last edited by
      #2

      or even better make it show up as a hex char i dont know how though any ideas? - LiquidKnight

      1 Reply Last reply
      0
      • A Anonymous

        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?

        H Offline
        H Offline
        Heath Stewart
        wrote on last edited by
        #3

        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-----

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups