We help IT Professionals succeed at work.

base64 encode/decode?

DJ_AM_Juicebox
on
Medium Priority
437 Views
Last Modified: 2012-08-13
Hi,

I just XOR'd a string and I want to send it over the internets. Of course now though the string has a bunch of crazy characters in it that is messing up transmission in a URL. I guess I need to base64 encode the output of the XOR before sending it to my server?

Does anyone know of a trusted code snippet that will do the encoding/decoding?

I'm doing this to just keep the average person from seeing this data.

Thank you
Comment
Watch Question

CERTIFIED EXPERT
Most Valuable Expert 2014
Top Expert 2015
Commented:

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
CERTIFIED EXPERT
Top Expert 2009

Commented:
Just a remark (don't accept this as answer, please) : I'm sure you know, but XOR "encryption" is relatively easy to break. So, depending on who you label as the "average user", it might not be sufficient. Maybe something like SSL is more appropriate ?

Author

Commented:
Hi Infinity, yeah I'm kind of stuck - my clients are cell phones, and the amount of data I have to encode is like 200kb for upload to my server. The data isn't sensitive - it's just a few art-y type files I created, and I didn't want to make it so easy for someone to simply examine the transfer and see the template guts (it's xml). Just doing an XOR would give me some peace of mind that it's not simply plain text.

I have been using AES in some other projects and it's great, but I'm afraid it will be too slow for that much data on a cell phone.

I don't know much about https, but that seemed like another option to create a secure connectionfrom the cell phones to the server - not sure where to get started with that.

Thanks for any other ideas
CERTIFIED EXPERT
Top Expert 2009

Commented:
If it's just for hiding the fact that you're sending plaintext data that is not sensitive, then an XOR might be sufficient indeed.

Author

Commented:
Yeah it's not user data or anything, just didn't want to make it so easy as for a non programmer to copy and paste it.

Thanks, I have some more questions about the XOR.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.