klone Posted March 22, 2005 Posted March 22, 2005 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. Quote
Administrators PlausiblyDamp Posted March 22, 2005 Administrators Posted March 22, 2005 (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 February 22, 2006 by PlausiblyDamp Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
klone Posted March 23, 2005 Author Posted March 23, 2005 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.