Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Alot of encoding/decoding algorithms produce a ciphered text which contains 'garbage' characters - characters which are neither the regular english alphabets or numbers.

 

I would like an encoding/decoding algorithm which produces a ciphered text which consists of only the regular english alphabets and numbers. Thank you.

  • Administrators
Posted (edited)

Most of the encryption routines just return byte arrays with each byte being the full range of 0 - 255. If you want to produce just text output (handy for cut & paste or e-mail) then Base64 encoding it could be a good idea.

 

Clicky has a little example of how to do encryption / decryption using built in .Net classes but also encoding the results to a text based format.

Edited by PlausiblyDamp

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Posted

Thanks a bunch (though i'm yet to try it out). I'd get to you later. On more thing though: I don't know how true but someone once said that the server authenticates the codes it sends to the client by attaching some sort of GUID key to the code so that if as much as a single character should change in the javascript code, the server rejects it. Am trying to do something of that sort. Say I'd have a message of any length then I'd create a key whose length I chose and use it to protect the message (that is why I want the ciphered text to be plain text)... something of that sort. So please if you have any ideas I'd be pleased to hear them.

 

Thank you once more.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...