[android-developers] Re: Easy and fast String obfuscation?

2012-07-06 Thread Francisco M. Marzoa Alonso
Hi,

JFTR, I have find a good implementation of the Rot13 algorithm for Java
that is perfect for my needs with just slights modifications on the
character mapping to add Spanish ones.

And I think it will be easy to implement the same in PHP also. Though
PHP has his own rot13 but it uses just alphabetic characters, so I will
create my own implementation with same char mapping as in the Java class.

Best regards,

On 06/07/12 12:47, Francisco M. Marzoa Alonso wrote:
 Hi there,

 I am looking for a way to obfuscate some strings in a way that they may
 be unobfuscated later.

 The point is that my app -a casual game- will take some lines from a
 file on an http server, and I do not want to have it as readable plain
 text. Please, note that I do not care if a user takes the effort to
 decode and read it. There he will find the solutions to some game levels
 no more, what I want is just to protect users to see the solutions even
 by accident, but if some one wants to cheat, I do not give a damn.

 I also like that the result of encoding process is still a readable
 string, so the file may be threat as a text file still and not as a
 binary one.

 Also it should be standard or very easy to implement, so I can generate
 compatible encoded strings using PHP also to decode later with Java.

 I tried first with Android's Base64 class that seems to be a perfect
 solution, but it requires API Level 8, so 2.1 devices are discarded and
 I do not want that.

 I think a XOR encoding may produce binary output at encoding.

 MD5 is discarded for obvious reasons: it is not reversible.

 Any ideas?

 Thanks a lot in advance,


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Easy and fast String obfuscation?

2012-07-06 Thread Pent
Just use a 3rd party base64 library, it's a very small piece of code.

e.g. http://www.source-code.biz/base64coder/java/

Pent

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Easy and fast String obfuscation?

2012-07-06 Thread b0b


On Friday, 6 July 2012 12:47:03 UTC+2, Fran wrote:

 Hi there, 

 I am looking for a way to obfuscate some strings in a way that they may 
 be unobfuscated later. 

 The point is that my app -a casual game- will take some lines from a 
 file on an http server, and I do not want to have it as readable plain 
 text. 


Why not sending it over https ? 

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en