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.
Thanks in advance,
~Logan

Re: Encrypt to readable text by Jon

Jon
Thu Jul 22 08:46:18 CDT 2004

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

Re: Encrypt to readable text by Joe

Joe
Thu Jul 22 11:04:59 CDT 2004

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