|
-
Feb 26th, 2008, 09:15 PM
#1
Thread Starter
Fanatic Member
converting a lot of data into one string.
okay say in my app i have 3 fields, name address and city (in a db table).
I want to give the option to "create mirror image online"
my online db has the strcuture
id (primary, autoincrement)
productId (the product key of the product)
data.
so when it uploads it should convert say
"Bob", "123 Fake ST", "NY" to something like
ghak2odm2dkcos029ckfk30. Is this possible? I GUESS this is what you would call encrypting but my main purpose is NOT to encrypt them, just "randomize" them.
-
Feb 27th, 2008, 05:49 AM
#2
Fanatic Member
Re: converting a lot of data into one string.
You can do a basic select in your database, concatenate each retrieved value into one string, then randomize the character order of the initial string into your final value.
-
Feb 27th, 2008, 11:16 AM
#3
Re: converting a lot of data into one string.
Supposed you are able to randomize your string (which is fairly simple to do), how do you revert it back to the original string at the server to make any meaning out of the randomized data? And now supposed that you are able to come up with an algorithm to un-randomize a randomized string, isn't it just like re-inventing the wheel (in the sense of data encryption). If you don't really care about unrandomizing the string, you can just simply create a random string at the server side because it doesn't matter what the uploaded string is, it still has no particular meaning so why not just create one on the server and save the bandwidth?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|