Re: Encrypt to readable text

From: Joe Kaplan \(MVP - ADSI\) (joseph.e.kaplan_at_removethis.accenture.com)
Date: 07/22/04

  • Next message: Joe Kaplan \(MVP - ADSI\): "Re: GetEffectiveDateString is bugged?"
    Date: Thu, 22 Jul 2004 11:04:59 -0500
    
    

    You could also hex encode the binary data if base64 is too unreadable
    (although this will be even larger). The BitConverter class does an ok job
    of this.

    I agree with Jon though; Base64 is pretty standard for this.

    Joe K.

    "Jon Skeet [C# MVP]" <skeet@pobox.com> wrote in message
    news:MPG.1b69d5875831309298af6d@msnews.microsoft.com...
    > Logan McKinley <logan@globalweb.net> wrote:
    > > I want to encrypt something and use the result as a registration key in
    my
    > > program, so it needs to be readable,but all of the encryption methods I
    have
    > > tried return unreadable strings. I need an encryption method that
    limits
    > > the result to chars that can be easily typed in via a standard keyboard.
    >
    > The most obvious answer is to encrypt it to normal binary data, and
    > then base64 encode it.
    >
    > --
    > Jon Skeet - <skeet@pobox.com>
    > http://www.pobox.com/~skeet
    > If replying to the group, please do not mail me too


  • Next message: Joe Kaplan \(MVP - ADSI\): "Re: GetEffectiveDateString is bugged?"

    Relevant Pages

    • Re: Encrypt to readable text
      ... You could also hex encode the binary data if base64 is too unreadable ... Base64 is pretty standard for this. ... >> program, so it needs to be readable,but all of the encryption methods I ...
      (microsoft.public.dotnet.framework)
    • Re: Trouble sending binary data over Sockets (using C)
      ... the base64 code will add new complications. ... So you have to properly chunk the input to the decoder.) ... this added complexity will have gained him nothing. ... Handling binary data in C ...
      (comp.unix.programmer)
    • Re: Trouble sending binary data over Sockets (using C)
      ... get binary transfers to work, ... of base64 encode/decode won't present ... he's probably better off trying to find the bug ... par with sending binary data. ...
      (comp.unix.programmer)
    • Re: ASN1 unexpected end of data
      ... base64-derived binary data directly into the CMS message? ... Joe Kaplan-MS MVP Directory Services Programming ... Co-author of "The .NET Developer's Guide to Directory Services Programming" ... regular base64 decode. ...
      (microsoft.public.dotnet.security)
    • Re: Compress ASCII text as Hex?
      ... There an encoding format code BASE64 (also known as UUEncoding in some ... It take fully binary data and converts it a set of 64 ... characters, so encoded blocks increase 33% in size. ... as long as your "encoded" string meets ...
      (microsoft.public.dotnet.languages.csharp)