Results 1 to 3 of 3

Thread: converting a lot of data into one string.

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2006
    Posts
    607

    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.

  2. #2
    Fanatic Member
    Join Date
    Feb 2007
    Location
    Eindhoven
    Posts
    828

    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.

  3. #3
    PowerPoster stanav's Avatar
    Join Date
    Jul 2006
    Location
    Providence, RI - USA
    Posts
    9,290

    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
  •  



Click Here to Expand Forum to Full Width