Page 1 of 1

To "obscure" a string

Posted: Wed Apr 03, 2013 2:29 am
by Mag
I'm searching a way to "obscure" a string to store then in an external text file, just for privacy of the user purposes, don't need to be securely crypted. Any ideas to the best way to proceed to be able then to convert quickly back to original string?

Re: To "obscure" a string

Posted: Wed Apr 03, 2013 3:04 am
by Simon
For obscure only, base64Encode() is a good one, MD5Digest another.
But both of these can be decoded by many programmers.

You can write your own handler which only you know how to decode, makes it harder but not uncrackable.

Simon

Re: To "obscure" a string

Posted: Wed Apr 03, 2013 3:18 am
by Mag
Hi Simon, right what I was searching for. Thank you!

Re: To "obscure" a string

Posted: Wed Apr 03, 2013 3:27 am
by Simon
Hi Mag,
I remembered an article for this... Much cooler:
http://livecodejournal.com/tutorials/ha ... s-005.html
Very hard to crack but not impossible.

Simon

Re: To "obscure" a string

Posted: Wed Apr 03, 2013 3:37 am
by Mag
Thank you so much!